Dynamic Effect Whitelist
Dynamic Effect Whitelist
This is a simple whitelist mod using MySQL/HTTP/File. To add users ingame to the whitelist permissionsBukkit is required (included in bukkit), you also need to use the File or MySQL mode. The plugin can run without any changes to the config, if you want it simple or you can edit the config to personalize the disconnect message etc.
The whitelist uses PluginMetrics which means it will send server info (plugin version, number of players on the server, server version, server location (country)), to PluginMetrics server (http://mcstats.org/plugin/DynamicEffectWhitelist) so I can get plugin usage. It can be turned off in PluginMetrics config (plugins/PluginMetrics/config.yml), but it's recommended to let it be on, so I can see the usage.
If a new minecraft version has recently been released then try the plugin instead of asking if it works. Before reporting a bug, check so you have the latest version and check the changelog
Features
- Whitelist using MySQL/HTTP/File
- Updates the whitelist at an interval and not just at server start
- Add users to the whitelist ingame or integrate with your forum/website
- The file data source uses the same format as Minecraft´s built-in whitelist system.
- Custom disconnect message (if not on whitelist)
- Notification for OP' s and players with the right permission, when someone joins and is not on the whitelist (Needs to be enabled in the config (General.PrintConnectFails))
- Support for custom SQL queries & custom database structure
- Built-in importer/exporter allows importing/exporting from/to file, sql & url to file, world & sql. (1)
- Reload plugin on the run (without restarting the server)
- Refresh the whitelist on the run (without waiting for the automated refresh or restarting the server)
- Whitelist can be turned on/off while the server is running
- (Allowed sources: sql, file, url, world Allowed destinations: sql, file)
Todo
- Nothing
Dependencies
- MySQL JDBC (If you are going to use sql as data source) - Download the mysql connector and place mysql-connector-java-5.1.15-bin.jar in C:\Program Files\Java\jre6\lib\ext or /java/packages/lib/ext on linux (http://docs.oracle.com/javase/tutorial/ext/basics/install.html)
Pages
Permissions
Permission | Description |
---|---|
dewhitelist.add | permission to add users to the whitelist |
dewhitelist.remove | permission to remove users from the whitelist |
dewhitelist.displayfails | permission to see all failed joins (shown in the chat if activated in config) |
dewhitelist.reload | permission to reload the plugin |
dewhitelist.refresh | permission to refresh the whitelist (check for new players in the whitelist) |
dewhitelist.import | permission to import from a source to another (Can be used to backup the whitelist) |
dewhitelist.mode | permission to turn on/off the whitelist |
Chat commands
Command | Description |
---|---|
/whitelist add [player] | adds the entered player to the whitelist. |
/whitelist remove [player] | removes the entered player to the whitelist. |
/whitelist reload | Reloads the plugin |
/whitelist import [source] [destination] | imports whitelist from source to destination (1) (2) |
/whitelist refresh | Refreshes the whitelist (checks for new players in the whitelist) |
/whitelist <on/off> | Turns on/off the whitelist |
- (Allowed sources: sql, file, url, world Allowed destinations: sql, file)
- (Uses a third argument when using world as source, the last world is the name of the world's name. Example "/whitelist import world file world")
Source
The source is hosted on Github: https://github.com/BlackVoid/DynamicEffectWhitelist
Download
- JAR Only (Version 1.5.2)
- Full package (Version 1.5.2) - Includes JAR, SQL-file (database), php-file (if you use url as data source)
Changelog
Version 1.5.2
- All debug messages are now shown with the prefix [DEWhitelist-debug]
- No longer prints entire whitelist in debug mode, instead it prints the number of players in the whitelist.
- Checks if other plugin has already disallowed the player and if so it lets the other plugin handle the event.
- In debug mode it now prints if another plugin has handled the join event.
Version 1.5.1
- Quick fix for the refresh timer which didn't work.
Version 1.5.0
- /whitelist <on/off> added - Can turn on/off the whitelist on the run
- Print connection fails should be fixed and should no longer print in console nor to players multiple times.
- debug option moved from General.debug to Other.debug
- Option in the config to set which mode the whitelist should be at startup (on or off)
- PluginMetrics added, sends anonymous stats (player count, bukkit version, plugin version), can be turned off in the pluginMetrics config (plugins/PluginMetrics/config.yml)
If you use my plugin on your server(s) please consider donating :)
Check if it works now. May have been because I compiled it with the latest dev version. http://blackvoid.eu/downloads/minecraft/dynamiceffectwhitelist-1_1_1-plugin.zip
@decebaldecebal
me too, still doesn't work
@BlackVoidRules
still it doesn't work on Java 6 and I run 1.2.3 R0.2 Beta Build
@BlackVoidRules
Yes > craftbukkit-1.2.3-R0.3
@PyPKjE
Do you run the latest version of bukkit?
[SEVERE] Could not load 'plugins\DynamicEffectWhitelist.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/dynamiceffect/whitelist/DynamicEffectWhitelist : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:56) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.UnsupportedClassVersionError: com/dynamiceffect/whitelist/DynamicEffectWhitelist : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ... 8 more
@decebaldecebal
I have to rewrite the code, because Im using a string switch which is only available in JDK7
EDIT: Should work with JDK6 now. Removed all switches. If you do not see the latest version (1.1.1) when you click download check the files tab.
what if I use a hosting company,how could I know what Java do they have?And if they have Java 6 what to do then?Ask the company to install Java 7 just for me?I don't that will work... You should compile it against Java 6 also because there are a lot of people that want to use this plugin(myself included)and don't have Java 7.Is it very hard to re-compile against Java 6?I'll appreciate it if you did i because there is currently no other plugin that does the same thing as this one.
Java 7 is still beta so there may be some bugs but the server seems to be running fine with it. then i keep java 6 installed because minecraft it self cant run on java 7 yet.
@Desttro
Its possible if I dont use switches to check which connection type you use for the whitelist, but I dont see a reason not to upgrade to Java 7. If you give me a valid reason. I will change it so it works for Java 6. Heres the source: http://blackvoid.eu/download/minecraft/dynamiceffectwhitelist-1_1-source.zip
@BlackVoidRules
Is there any way to run it on Java 6?
Thank you.
@pigeoncraft
It's built for Java 7 and I cant use Java 6 for the plugin because I'm using a function which is only available in Java 7. Can't remember which function right now.
I got it to work but i have to use Java 7 witch im not sure i want to trust it yet :/.
Ill release it tomorrow
The only thing Ive found so far is that you guys dont run the latest JDK.
Still same error on my windows 7 pc. Is there a chance i can get your source code I just want to look through it and test a couple of ideas.
@pigeoncraft
Same errors as you at 1.2 http://pastie.org/3536788
I have java on Mac 1.6.0_29
All my other plugins work. its just this one that throws the error
@BlackVoidRules
Ok that would be great cause I really need your plugin :)
@pigeoncraft
I did not up the requirement buts thats the only thing I've found that might cause the problem. Ill look further to see whats causing the problem
@BlackVoidRules
Ill look into my java version. It worked great on 1.1 did you up the requirement?
Edit: I have java 6 update 31 installed