LWC Tweaks
LWC Tweaks
Version: 3.2.8
Ever looked for an automated way to delete LWC protections after X days that user didn't login? Well look no more; this plugin does just that! It will delete player chests even if the server goes offline past the X in the config! Now supporting players that joined even before you installed this plugin.
Pages: Configuration
Features
- Unlock LWC protections after X days the player hasn't logged in
- Lightweight!
- No database support required!
- Add players from even before you downloaded this plugin!
- Remove the block
- Remove protection based on:
- Chance
- World
- Old player
- WorldEdit Selection
- Radius
- Permissions
Permissions
Permission | Description |
LWCTweaks.Ignore | Players with this permission will be ignored by this plugin |
LWCTweaks.Find | Allows access to the /lt find command |
LWCTweaks.Info | Access to the /lt info command |
LWCTweaks.Remove | Allows access to the /lt remove command |
LWCTweaks.Reload | Players with this permission will be able to reload the config. |
LWCTweaks.PurgeData | Players with this permission will be able to delete all player data. |
Commands
Command | Description |
/LWCTweaks | Info about the plugin |
/LWCTweaks Info | See information about the permissions LWC has. |
/LWCTweaks Find [Radius:WE] | Find all protections in a radius, or in your WE region |
/LWCTweaks Remove [Radius:WE] | Remove all protections in a radius, or in your WE region |
/LWCTweaks Reload | Reload the config file. |
/LWCTweaksPurgeData | Delete all player data, not protections |
/LWCTweaks ResetProtections | Deletes ALL PROTECTIONS and ALL DATA |
Note: /LWCTweaks ResetProtections will delete all protections. Only Ops or the console can execute this command.
Download
- Like every single plugin out there, download the latest jar here: (Click)
- Put it right into your plugins folder!
- Reload/Restart your server!
- Edit configurations to your liking!
- Type /LWCTweaks reload or restart your server
Add previous players
- Open up the configuration file.
- Put your main world's name in "Main World Name" (can be found in your server properties file)
- Set "Check All Protections" to TRUE
- Set "Debug" to FALSE -> Will send you MANY messages (in thousands if you have a large server)
- Start your server
- Wait for all the files to transfer. (Will be written something like transfer complete or server ready)
- Stop your server
- Set "Check All Protections" to FALSE ! EXTREMELY Important! !
- Start your server.
- This will create a file for everyone who has ever joined your server, and that has atleast 1 LWC protection.
- Their protections will be removed if they do not join after "Time before unlock"
- Do not forget step 8!!
Coming Soon
- Green = done |
Red = Cancelled| Orange = planned - Code cleanup
- Suggestions? Open up a ticket or write it as a comment!
Disclaimer
Please use at your own risk! Protections WILL be deleted and Chests and other protected items will be available to anyone after X amount of days passed, as defined in the configuration.yml file. By downloading this plugin, you acknowledge that Zacky1 is not responsible for mishap while using this plugin. If there are any bugs, feel free to talk to Zacky1, leave a comment, or submit a ticket to get them repaired. I do not own LWC. It's developed and owned by Hidendra, click here to go to his dev page. This plugin is merely an addition to LWC.
My plugins:
The Tweaks suite: ChatTweaks | LWCTweaks | PluginTweaks | BanTweaks
Please submit a ticket if you found a bug or an error. Never paste full errors in the comments. Use pastebin instead
does this affects chest shop protection?
@ProjectInfinity
@OrionEvermore
Update coming out soon :)
An issue removing protections.
I followed the directions above for adding previous members already on the server prior to this plugin. I see the Data file listing all the protections in all the worlds, amazing how many there are...
I used LastLog to see when the last time a particular person logged in was, and set the x days in the config to 14 days. This person I used to test this on hadn't been on in 21 days, and his protections remained.
I tried /lwctweaks Checkdatabase. and get "you've checked the database" Protections still there.
Tried /lwctweaks Remove 10, while standing right beside the chests, Still there.
Also i noticed there is a Configuration.yml and config.yml generated. The config.yml is blank.
In your configuration link at the top of this page there is an "Enable ban listener" noted which is not in my Configuration/Config.yml.
Any Help would be appreciated. No Error messages in the Console or in game.
@Zacky1
Any release soon to fix the bug that stops the plugin from deleting expired protections?
@Evilbannana1
/LWCTweaks ResetProtections will Delete ALL PROTECTIONS and ALL DATA
Can you add a "force cleanup" command, so we don't have to wait for ages to cleanup the LWC database?
@ProjectInfinity
Thanks for these, I'll release an update soon! Also, old protections are deleted at every interval you defined in the config... As for messages, ill look into it :)
Getting quite a few of these: http://pastebin.com/raw.php?i=QDKgMBDw http://pastebin.com/raw.php?i=3Q8prRyR
Also, it seems like old protections are never deleted. Does this plugin ever automatically delete old protections or is any kind of action from users required?
@Zacky1
First of all, messages are not possible to customize. Plus I'd like to add name filtering to /lt find and /lt remove.
@ProjectInfinity
Thanks! :) That'll be easier.
Also, why do you need the source... what changes do you needa make ;o
@Zacky1
Main world can easily be gotten by getting the first result of getWorlds(), there is no need for the user to specify it. :)
In every case I have tested, this turns out to be true. http://jd.bukkit.org/beta/apidocs/org/bukkit/Server.html#getWorlds()
PS: Would you mind open sourcing your plugin? I'd like to make a few adjustments for my own server, but I feel iffy decompiling your work to recompile it with my changes.
@Toxic__Waste
You'll need to wait since the LWCTweaks doesn't work on a "per player basis"... sorry :/
i added the plug in imported all the players and protections with no problem..now do i have to wait for the protections to delete after 14 days (what i set it for) from time of plug in installed or is there something i can do to delete protections to people that have not been on in 14 days...its been six days since i installed the plug in
@goakiller900
This more of a technical thing, it's really a Bukkit thing thus it has nothing todo with multi world. The main world name is where Bukkit stores all the player data. If you don't know what your main world is, you shouldn't mess with that option :)
zacky kan i add more worlds to main world ?
as players can move over 5 worlds on my server ?
@user_83
This will be fixed in the upcoming version, thanks for pointing it out! :)
@xelnaga15
Try typing /lwctweaks info... post what you see here ;)
The update fixed my issue with player transfers, but this error came up
http://pastebin.com/embed_js.php?i=Vw98vhh4
I'm usings 1.4.7 and I've tried 3.3.0 and 3.2.8 and both always keep saying that LWC isnt connected to its database . when it is. whats going on here?
@user_83
Okay, thanks. Ill look into it :)
@Zacky1
Yup, the world name in the config matches the one in server.properties