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!
@lorinthios
Sorry - will you be updating it so it refreshes?
@Electro440
As long as its working now! =)
@lorinthios
Oh ok! That makes sense. Thank you very much for your time, and I'm sorry to have pestered you with my problem for so long! Thank you for bearing with me. I hope it will not be too hard to add a refresh function/script (or whatever...) into the code - I don't want to make you go out of your way too much! D:
@Electro440
I thought I replied to this.. but theres no post here. So anyways this is short on my part. I just need to refresh the connection to PEX in my plugin. So ranks may change but its using the permissions file there on startup. So if the rank changes during runtime, then my plugin doesn't see the change.
I'm very sorry for not getting back to you sooner... In that example, it seems you are also using the built-in limits with world edit...? Should these be disabled? Or should I have the limits enabled.... What should I do with the permission, and should I be giving that permission to all the groups? (worldedit.limit).
Sorry, and thank you very much for your time.
Edit: I just threw this new file into my plugins folder, and this time my log did display some welimits-related info, just like you said in your example... based upon what I can tell it seems to be working fine. I'll demote myself and test it out.
This is what it says: http://pastebin.com/vkPLs2ur
Edit 2: Just tested a few things - It seems to be working fine now :D I only have one problem.. our server ranks are based off of ontime, so OnTime autopromotes players... It seems to me, that when I am promoted, my welimits stays the same as my previous rank until I reload the server... Do you know of any problems as to why this would happen? It also happens even if I do not auto set my rank... (do it manually using permissionsEX).
Thank you again.
@Electro440
its uploaded and under files if you wanna check it
@Electro440
You should see something along the lines of this... Let me try to upload another version to see if it was an export/upload issue
Sorry, am I missing something? D: I definitely have downloaded the right file... nothing has been popping up in the logs though.
@lorinthios
Oh, sorry, didn't see that post. Yah I'll go check the logs.
I don't see anything...? This would be under latest.logs correct?
@Electro440
Its mainly changing when players log on/off. So when someone jumps on give me the 8 or so lines it prints out
Right, couldn't get the files back :\ I'll download and run it now to see what it says :)
Edit: Is it still going through Bukkit? I don't see it in the version history. Another Edit: The owner apparently knows how to work around bukkit links, so he got me the download. I downloaded it and ran the server.. just getting the log now. Right, I assume you mean in the logs folder... there's nothing there except it saying that Welimits loaded.
@Electro440
I wish you luck! And just let me know when!
I'm so sorry for the late reply. I got sidetracked with a lot of building. Unfortunately, some very important files got deleted, and I'm looking to run a program to hopefully get them back. Until I run that, I don't really want to touch the server! I should be able to let you know if it's working before the end of the week.
Thank you so much for helping me out, I'll be sure to let you know as soon as I've tested it out.
@Electro440
I'm making a "noisy" version for you to run so I can see exactly where the problem is when you're setting it up. Should have it made by tomorrow!
EDIT: It's put up! If you could just give me your log when you jump on the server and let me know what the issue is, we can figure it out =D
Any news...?
@lorinthios
Alright, thank you very much :)
@Electro440
Just got internet today. Im at work now, but once i get home ill try to figure out your issue! =)
@lorinthios
Thank you for your fast reply. I hope you get internet back soon! D:
@Electro440
Thanks for the kind words! I will check that out soon I'm on my phone while I wait for my internet to come back tomorrow, so I will get this fixed ASAP!
I just want to say this is a wonderful plugin and very useful. As far as I know, there are not any others like this out there, and it is perfect for creative servers!
I just had one question - will the limit be affected by inheritances? For example, rank 2 inherits from rank 1, but rank 2 has a higher world edit limit than rank 1.
Also, (I think someone posted this below), but can you maybe add an in-game reload command? (At your earliest convenience of course). That would be a huge help.
Thank you!
-- Edit-- I was hoping you could help me with this problem I'm having. I'm utterly stuck! No limits are applied to the groups. I'm getting no errors when I run the server. I'm sure all the groups spelling/caps are exactly matched... Here's my config: http://pastebin.com/T9BZNUhp#