WELimits
WELimits
This plugin is a simple extension on top of World Edit, that utilizes PermissionsEx to add specific block change limits for groups! It is sleek, and just adds that single mechanic that World Edit doesn't have itself.
Dependencies
- World Edit
- PermissionsEx (or) GroupManager
Setup / How it Works
How it works, when a player logs on, it reads their Permissions Group, and sets their limit according to WELimits - config.yml. All you have to do is enter your groups in the config.yml and edit the amount of blocks for example...
admin: 75000 mod: 20000 member: 0
this would produce the effect that when an admin logs on their limit is set to 75000, and cannot change it as long as they aren't OPed or have the worldedit.limit.unrestricted permission
Permissions
NO PERMISSIONS! This just uses your pex(or group manager) groups and the numbers you set in the config.yml
Recommendations
For the best results leave your top groups limited to some large number maybe 300,000. this will allow you to avoid crashes on the server and stay safe on that side of things!
When people join it throws errors:
[00:23:51] [Server thread/ERROR]: Could not pass event PlayerJoinEvent to WELimits v1.2.2 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:298) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [Server_jar.jar:git-Spigot-db6de12-18fbb24] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_65] Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:653) [?:1.8.0_65] at java.util.ArrayList.get(ArrayList.java:429) [?:1.8.0_65] at me.Lorinth.WELimits.WELimits.setLimit(WELimits.java:143) [?:?] at me.Lorinth.WELimits.WELimits.onPlayerLogin(WELimits.java:124) [?:?] at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_65] at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_65] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [Server_jar.jar:git-Spigot-db6de12-18fbb24] ... 14 more
The permissions dont seem to work when i set them up? Is it because there is an update i cannot find?
1.8.3 update? Or code?!
I got the same error as Thanoric. Happens whenever a player joins, is it updated to work with UUIDs?
Hey can you please add Vault Support? I'd prefer to use bPermissions.
Can you also release the source?
@lorinthios
I need that feature added as well. So that way if a player donates to a rank, that perk of having a higher limit will take effect as soon as his rank is changed.
@th3oneironaut
I can add that fix, luckily its not a huge issue, just inconvenient =)
@piter909
shouldn't be a copy limit, but that isn't nearly as intensive so I haven't considered adding it before. If you would like to see that added I can add it as a config option
Is there a copy limit? ;/
There's a small problem with this. When a player is promoted or given a new rank, this plugin doesn't recognize the change. It seems that this plugin has to be reloaded or restarted in order for it to re-hook into your permissions and see the change.
Does this work? Is it being updated?
@Thanoric
Getting same error as this person BTW. Spigot 1.8 (I Know 1.8 lol, but need for limits)..
Also the server will crash when a player does anything over the default, default if it cannot find a player group (which it never does, even though it is spelled out the same). So, pretty much broken for anything spigot 1501+ at least.
Threw an error spigot 1529 & 1501 with latest PEX. http://pastebin.com/rVdjSwDE
Config: http://pastebin.com/5jxt6R5Y
It also threw an error when I allowed it to hook into multiverse.
be sure each group has a setting called default:
so you would have it look like...
also your config is confusing so do your world names and group names match? Because you have your world names under the group names being the same. So you have groups called (T1 - T5, as well as applicant and mystic) as well as worlds called (T1 - T5 and Team)
ANYWAYS, the fix should be to simply put a default value for each group so all else fails it will use the default value. Let me know if it works or doesn't!
Getting this error: http://pastebin.com/c8rD28wG This is my config: http://pastebin.com/fYRMLtJL
@Alecdent
I cant check this until tomorrow, i dont have my comp to search the code for the issue =( but when i can ill let you know how to fix this
I've been getting an error and can't quite pinpoint what's causing it..
Throws error on join, "Can't find group" All of the groups listen in WELimits config are correct, case and all. I'm using GroupManager, latest version of both WELimits and Worldedit, all on Spigot.
Bit more defined information:: http://pastebin.com/yC2JnDkK
@lorinthios
Alrighty- yah- sorry, I was a bit confused xD Thank you :)
@Electro440
Yeah soon =)