Jump to content
Sign in to follow this  
ImportBot

Access Restriction (v1.0.5.1 - 01.01.2011)

Recommended Posts

Originally Posted by MorpheusX(AUT)*:

 

Installation

 

Copy AccessRestriction.cs source file to your Plugins/BFBC2 directory

 

Description

 

Please be aware that the use of this plugin might break the BFBC2 Rules of Conduct (found here: http://forums.electronicarts.co.uk/batt ... nduct.html). Please ensure you have read and understood those rules before using the plugin!

Access Restriction shall bring an automatic system, which allows a server admin to set limitations in server-access. The plugin contains four mechanisms, which each allow to restrict access to a special field.

 

Details

 

RankKicker

RankKicker kicks players, whose rank is higher than the one defined by the server admin. Thus, providing a 'noob only'-Server shall get much easier than it was before.

 

AccessLimitation

AccessLimitation lets the admin set a list of allowed players and/or Clantags. Any other player, who joins the server and is not in one of those lists (if both lists are activated, a player just needs to have either a valid Clantag or a valid name) , will get kicked or banned.

 

ClanTagModeration

ClanTagModeration can be used to prevent the abuse of a Clantag. Once a Clantag is added to the list of moderated Clantags, each Player allowed to wear the tag must be added to a seperate list. If a player joins the server, wearing a specific tag, but not being in the list of allowed clan players, he will get kicked or banned.

 

DisallowedClanTags

DisallowedClanTags provides the feature to keep players wearing a specific Clantag off your server. The administrator can choose whether to kick or ban those players, and thus saves a lot of time adding new players to his banlist.

 

Setup & Configuration

 

Please read the plugin's description.

 

Changelog

 

  • 1.0.5->1.0.5.1

    - restructured some parts of the code

    - added an automatic data-clearing method

    - improved the old data-clearing method to make it more effective

    - added a clan tag whitelist to RankKicker[/*:m:1vbf2xvk]

  • 1.0.4 Hotfix->1.0.5

    - fixed a bug resetting the plugin's variables when restarting PRoCon

    - added optional GUID-Banning[/*:m:1vbf2xvk]

  • 1.0.4 Hotfix

    - fixed a bug not allowing to enable RankKicker[/*:m:1vbf2xvk]

  • 1.0.3->1.0.4

    - added "RoC read and accepted" to be checked before using the plugin

    - fixed two minor bugs in the RankKicker-Code

    - added "DisallowedClanTags"[/*:m:1vbf2xvk]

  • 1.0.2->1.0.3

    - small bugfix in OnListPlayers-RankKicker-Code[/*:m:1vbf2xvk]

  • 1.0.1->1.0.2

    - plugin-rename from "RankKicker" to "Access Limitation"

    - fixed the "Ban after X Kicks"-Feature of RankKicker

    - added AccessLimitation

    - added ClanTagModeration[/*:m:1vbf2xvk]

 

Download: http://www.phogue.net/forumvb/attach...1&d=1293900084


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Flyswamper*:

 

As I said in the other thread, I personally believe that using the AccessLimitation logic on ranked servers violates the spirit (if not the rules themselves) of the policies/rules for ranked battlefield servers. Kicking any player that is not in the approved/whitelist is no different than passwording the server from a practical point of view. It is no longer a publicly available server and therefore should not qualify for ranked server status.

 

I would suggest that the code be modified so that this feature could only be run when server is in unranked mode.

 

At least that is how I see it... others may view it differently...


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

I am aware of this, but just implemented user's wishes.

I will at least add a "I understand that restricting access violates the EA RoC"-Check in the next release, the Plugin won't run withough it being ticked. Thus, the server admin can decide for himself if he wants to use the feature or not.

Worst case I am gonna nail the AccessLimitation down to unranked Servers.

 

EDIT: BTW, limiting the access to gameservers doesn't violate the EA RoC... There is no paragraph about access restriction to certain players or stuff. See: EA UK Forums


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by blactionhero*:

 

Restricting access to clan members or to only desirable clients is not a breach of the RoC. Saying that it is accomplishes nothing more than tarnishing this feller's new addon.

 

I understand the point you're making, Flyswamper. This plugin isn't technically denying connections though - it's kicking people who the admin doesn't want on the server. An admin can do this anyway without violating anything. By your logic, a ping kicker, country kicker, etc. would also be in violation.

 

P.S.: The RoC are ridiculous and make me angry. Just sayin'.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Flyswamper*:

 

Restricting access to clan members or to only desirable clients is not a breach of the RoC. Saying that it is accomplishes nothing more than tarnishing this feller's new addon.

Look, I'm not trying to tarnish anything. I am simply pointing out that *I believe* using this violates the SPIRIT of the RoC. I felt that it would be useful to point that out. I'll be the first to concede that the RoC don't specificially address this sort of plugin/situation. As I said, it is my OPINION that it does violate the spirit of them though...

 

I understand the point you're making, Flyswamper. This plugin isn't technically denying connections though - it's kicking people who the admin doesn't want on the server. An admin can do this anyway without violating anything. By your logic, a ping kicker, country kicker, etc. would also be in violation.

No... they are quite different. This plugin deny's (by default) the ability for anyone except those on the approved list to play in the server. Although the mechanics are different, the outcome is exactly the same as if you had passworded the server and only distributed the password to the players on the approved list. This plugin, for all practical purposes, creates a passworded server situation.

 

This is quite different than the situation where a server is open to any/all players until they are deemed as troublemakers (for whatever reason) by admin.

 

P.S.: The RoC are ridiculous and make me angry. Just sayin'.

I undertand your feeling but.... they exist nonetheless. And, if someone chooses to ignore them and still have a ranked server, they run the risk of having their server de-ranked should EA ever decide to take action (fat chance of that in most cases).

 

Again.... I don't point this out to cause anyone here trouble. Quite the contrary, I point it out so that people give this some thought and make their choices from a somewhat more informed position.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

As said before, I respect your thoughts, but still just created a "tool" for an admin. What he/she does with it, is up to him.

Next release will include a mentioned message, pointing out that a admin should read the RoC and that this plugin might break some rules, or the "idea" behind some rules.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by CaptainSilver*:

 

We are looking for a plugin that can kick certain clans. Your Plugin is almost what we are looking for. Maybe you can do little changes in you skript?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

So you are looking for a "blacklist" based on clantags?

No problem, will be in v1.0.4, which will probably be released today afternoon/evening :ohmy:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Access Restriction v1.0.4 is released, including a "RoC read and accepted"-Check (just to make sure the admin is aware that he might be breaking some rules) and the requested "blacklist" for clantags.

 

Please report any issues or bugs found in this thread!


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by SinBad-OTF*:

 

Wasn't able to set RankKicker to 'On' in Version 1.0.4, and yes, I set the BFBC2 RoC to 'Yes'. When I used the pull down menu to select 'Yes' at the bottom it said that setting was set to yes but the pull down menu went back to 'No'

 

Tested Version 1.0.3 and it works fine (although it says version 1.0.2 in the details).

 

Just using the rank limiter, which was a setting in BFBC2, but doesn't work as we all know.

 

//SinBad


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

True, thanks for the hint.

Little typo broke it down :mad:ops:

 

Working version in first post!


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by SinBad-OTF*:

 

Cool! I can change the setting to allow RankLimiting. Thanks for the plug-in!

 

Note: Be careful if running multiple servers from one instance of ProCon. Accidentally enabled the plug-in our our regular server when it was full.. OOPS!

 

//SinBad


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Note: Be careful if running multiple servers from one instance of ProCon. Accidentally enabled the plug-in our our regular server when it was full.. OOPS!

 

//SinBad

Hehe, I did that while the first stage of testing, and had a nice bug in the stats-requesting. Result: 32 Players kicked in 1 second. At least, the plugin is fast :P

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Jaythegreat1*:

 

When I restart my procon layer, I lose all my settings and the RoC is set to no. Anyway to have this plugin keeps the settings after a restart. It would be a major PITA, to keep re-entering this stuff on 3 servers.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by NEXSO*:

 

When I restart my procon layer, I lose all my settings and the RoC is set to no.

Yes - Update plz :sad:

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Havent noticed the problem yet.

I will take a closer look at it and hopefully find the bug before christmas :ohmy:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Version 1.0.5 released. It will also be available via Package Management System.

I hope I found the mentioned bug... Should be working now.

Please report back if the error still occurs.

 

Furthermore, I added the feature to ban players using their GUID, so they can't join the server with another soldier.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Please note that the RankKicker plugin might cause lags or crashes these days, as BFBCS still got troubles fetching stats.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

New version released!

Please update to this version to reduce lags caused by Access Restriction!

See the first post for a changelog.

The update will also be available via PRoCon Package Management in short time.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by EBassie*:

 

MorpheusX(AUT),

 

thanks for this great plugin.

 

Got a request though:

Is it possible to use the reserved slots as a whitelist for players for the "Access Limitation" option?

In this way you don't have to edit the accounts on multiple places.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

I must say I have no idea if this is possible. Have to look into it closer...

The whole plugin needs a bit of restructuring since it uses the older Plugin API, which is more ineffective.

But this will take several days or weeks. I got very little time due to university at the moment, and CheaterAlert eats up most of this currently.

I will see if I can implement that quickly. If not, I am sorry to say, but you would have to wait the about the first week of February.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Phil_K*:

 

Hi.

 

I must say I have no idea if this is possible. Have to look into it closer...

Just to give you a hint, take a look at

Code:

OnReservedSlotsList(List<string> soldierNames) { }
Hmm.. that reminds me to get more familiar with plugin structures.

:smile:

 

Greets

Phil.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Oh. that was easy :lol:

When does this get thrown? Every now and then, or just when someone is added or the plugin is loaded?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by Phil_K*:

 

Hi.

 

Oh. that was easy :lol:

When does this get thrown? Every now and then, or just when someone is added or the plugin is loaded?

:ohmy:

Actually only on every reservedSlots.list command and not in addition to

reservedSlots.addPlayer or .removePlayer.

 

To get sure to get all changes monitor for

Code:

OnReservedSlotsPlayerAdded(string soldierName) { }
OnReservedSlotsPlayerRemoved(string soldierName) { }
too.

 

Greets

Phil.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

Alright. Great, thanks for the hint phil :smile:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by EBassie*:

 

I will see if I can implement that quickly. If not, I am sorry to say, but you would have to wait the about the first week of February.

I'm not in a hurry. It was just a suggestion. I think I saw it with another plugin and thought it might be handy :smile:

 

Edit: yeah, found it: The weaponlimiter uses reserved slot as whitelist. :smile:


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

I'm not in a hurry. It was just a suggestion. I think I saw it with another plugin and thought it might be handy :smile:

It will be inside the next release. Whenever that will be :P

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MoFo*:

 

This plugin appears to be broken. Is there a fix or another workaround?


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MorpheusX(AUT)*:

 

This plugin appears to be broken. Is there a fix or another workaround?

Could I get a bit more information? Browsing through all nearly 1700 lines of code to find a bug, which I don't even know if it exists is a bit stupid 8-)

* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Originally Posted by MoFo*:

 

I've got the plugin settings set properly I believe, it simply does not kick anyone who enters the server over the specified rank. No other detail than that. It's not working for me. ROC read and accepted set to Yes, Rank Kicker set to on, rank limit set to 30.


* Restored post. It could be that the author is no longer active.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Our picks

    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 10 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 6 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.