IWarnYou
IWarnYou
IWarnYou is a simple warnings plugin designed to alert users of there wrong doings but also so staff can check if a user has previously broke the rules.
> Download v1.5.3 Here <
Want a custom plugin or want this one rebranded? Add me on skype (craig-egerton) or check out http://mc.craigegerton.com/
IMPORTANT - CURRENTLY WORKING ON v2
UPDATE 20/12/2012: I have been doing work on this and it is very much improved but every time I get it close to release, I have learnt a bunch more about coding and end up redoing everything much better in every way you can think of, due to this it was terribly delayed! I have decided I will recode this plugin only one more time and I am guaranteeing that it will be released for you guys to use, once that is released and bug free I may improve on it more but you can expect the next version (1.4.6 compatible) to be released in the next few weeks :)
Thanks to learning more about Java coding and the Bukkit API I am currently working on a complete recode and remake of the plugin that will complete reinvent the way it works, what it can do and how well it works, it will make everyones life easier when handling the warnings and the weight each warning has (because currently a spam warning weighs as much as a grief warning even though they make a big difference).
I have currently implemented in to the remake:
- Simple config file (both layout and the way the plugin handles it)
- MCBans Support
- A version update detector with auto downloading
- Any normal startup code has been cleaned up to be more efficient
- Permissions
- Swear detector
- Warning check signs
- Freeze warn (freeze the player when they are warned)
NOTE: Sorry about the delays in the update, my computer went crazy and I could not use it properly to get coding again until now, I have started development on the update again and am making good progress :)
Commands/Permissions
Command | Shortcut | Permission | Description |
---|---|---|---|
/warn (username) (reason) | N/A | iwarnyou.warn | Warn a user |
/warnings [username] | N/A | iwarnyou.check | Check yours or another users warnings (must be op or have node to view others) |
/clearwarns (username) [id] | /cwarns | iwarnyou.clear | Clear the warns set to a user, add a ID to the end to remove a specific warning |
/modifywarn (username) (id) (reason) | /mwarn | iwarnyou.edit | Modify a already created warning |
/twarns | N/A | iwarnyou.twarns | Toggle the ability for users to view there warnings without accessing the config file |
/iwyreload | N/A | iwarnyou.reload | Reload IWarnYou |
/iwy | N/A | N/A | View available commands |
To create a warnings sign you need the permission node iwarnyou.sign if you have it create a sign with [Warnings] on the top line to view the users own warnings or add a username on the second line so when you right clicked it will tell you that users warnings!
Configuration
By default the configuration file shows this:
# IWarnYou config file WarningsToBan: 5 BanMsg: You have been banned for reaching &4%num&f out of &4%total&f allowed warnings! ShowAllOnLogin: false ShowOnLogin: true AutoBan: false viewOwnWarnings: false announceWarnings: true
Here is a rundown of all the settings:
- WarningsToBan
- How many warnings a user can have at any one time before they are auto-banned (AutoBan must be set to true)
- BanMsg
- The message a user gets when they are banned
- ShowAllOnLogin
- Should the user see all there warnings when they sign in
- ShowOnLogin
- Should the user see a warning count when they sign in
- AutoBan
- Should users be auto banned when they reach the WarningsToBan limit
- viewOwnWarnings
- Should the user be able to view their own warnings without having the permission node or being a op
- announceWarnings
- Should every user in the warned users world see that they where warned
Currently added in next version
- Only OPs and people with the iwarnyou.sign permission node can destroy [Warnings] signs
ToDo
- Cursing blocker that automatically warns the user and blocks the fowl language
- Ability to add location to warning with extra argument (e.g. -loc)
- Warnings time out (edit time in config file)
- Temp ban with a adjustable time to be banned
- Plugin will tell you when a update is available
Contact Me
If you have any problems, bugs or ideas then please contact me at [email protected] or leave a comment!
Changelog
05/03/2012 - v1.5.3
- Updated to the latest recommended build (CB 1.1-R6)
31/10/2011 - v1.5.2
- Fixed error that stopped a ingame user warn a offline user
- Added colours to the [Warnings] signs
- Happy Halloween!
30/10/2011 - v1.5.1
- Fixed database update error
30/10/2011 - v1.5
- Warnings have there own unique ID which is stated after the # when you type /warnings [username]
- Automatically updates the old databases to support the new ID's
- The ability to delete a warning by ID
- The ability to edit a warning by ID
- A warning sign that when you right click tells you information
29/10/2011 - v1.4
- Removed some debugging I forgot to remove (when it says the server didnt reload ignore it)
- Added the ability to announce the warning to everyone in that world (change in config)
- OPs can see version number in /iwy
- Fixed the /clearwarns bug when typed in game and the user is offline
- Case insensitivity if the player is online, otherwise warns case sensitive offline user
27/10/2011 - v1.3
- Fixed a bug where clearing a offline users warnings would create a error
- Added /twarns so you can toggle if users can view there own warnings without accessing the config
- Updated HelpMe support to work with the new Maven system
- Added /twarns to HelpMe
27/10/2011 - v1.2
- Added HelpMe support (HelpMe must be installed)
27/10/2011 - v1.1
- Adding console support (commands now work in the console)
26/10/2011 - v1.0
- Initial Release
@deleted_7554077 @rebel24 @Lolseeker @Jobsti2 @harryjamesuk @LEOcab
It has now been updated and accepted ;)
Cool
@deleted_7554077 @rebel24 @Lolseeker @Jobsti2 @harryjamesuk @LEOcab
I will update it now, expect a update soon just so it works on the new bukkit server (the newer features wont be added as v2 is going to be completely different)
EDIT: Updated to the latest recommended build (v1.1-R6) but it still needs to be accepted!
We need 1.2 support, broski! <3
@Jobsti2
Yeah, I agree ;)
Heyho,
a R6/1.2 Update would be nice.
I'd love to see an update!
Same bug as KJanar.
Think you can just update this ASAP!
Can you open up a ticket section? I feel bad posting huge error logs here.
Testing R5 builds and I got this error with your plugin. Running on CB 1964 and Java 7 Update 7 64Bit.
2012-02-28 14:51:32 [SEVERE] Could not load 'plugins\IWarnYou.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException java.lang.NoClassDefFoundError org/bukkit/event/player/PlayerListener
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:153)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:288)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:212)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:190)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:166)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.NoClassDefFoundError org/bukkit/event/player/PlayerListener
at java.lang.ClassLoader.defineClass1(Native Method)
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$100(Unknown Source)
at java.net.URLClassLoader$1.run(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 me.craigege.IWarnYou.iwy.<init>(iwy.java:123)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:149)
... 8 more
Caused by: java.lang.ClassNotFoundException org.bukkit.event.player.PlayerListener
at java.net.URLClassLoader$1.run(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)
... 27 more
yes please update soon!
Update for R5? :)
@CraigEge
Glad to hear that, good luck ^^
@CraigEge
:O omg that is so cool. I love this plugin. Awesome to see your active again.
@Pixiyo
Sorry but I have not been able to use my computer recently, it is now working again and I am continuing to make rapid progress on the update :)
When is the update coming! Can't wait..!
@drguild
The person who issued the warning and the date/time is being saved anyway, this can then be used when adjusting the display options!
Example of a customised warning message: You have 1 Warning: 1. ISSUER: Griefing (29/01/2012 @ 3:33)
MYSQL support in V2 please as we can list warnings on a admin webpage as we have a web developer who can code that up for us.
Also who issued the warning is desperately needed as the owner of my server I try to keep my staff accountable for there actions also people seem to do things without telling me like warn and message players.
And time/date the warnings is issued.
That would make it the ultimate plugin for us and we would use even more then.
@baemboo
Yeh I'm looking forward to the mcbans support
just wanted to say im waiting for the v2 release, hope its coming soon :D
@Pixiyo
Being added in v2