JOPHWarn
JOPHWarn - The awesome way to warn users!
What it does?
JOPHWarn is a simple plugin that is used to warn players about griefing, stealing, swearing or anything and everything.
What features does it have?
- Warn players with /warn <playername> warning
- You can view the warnings of any player
- You can define how many warnings before a user is kicked
- You can define how many warnings before a user is banned
- You can clear all of a user's warnings using a command (see below)
- 6 custom command features
- All warnings show in the console and go in your server.log file
- Players with a perm node can be notified on warnings
- Adds timestamps to warnings
- If a user already has warnings, it asks if you want to infract instead
Commands
- /warn PLAYERNAME WARNING-TEXT-HERE -warns a user
- /warnings view PLAYERNAME - shows the users warnings and who warned them
- /warnings clear PLAYERNAME - clears all of the player's warnings
- /infract PLAYERNAME WARNING-TEXT-HERE -infracts a user
- /infractions view PLAYERNAME - shows the users infractions and who infracted them
- /infractions clear PLAYERNAME - clears all of the player's infractions
- /confirm - used when you warn a user and they already have warnings, when you're asked if you want to infract instead or warn
- /deny - used when you warn a user and they already have warnings, when you're asked if you want to infract instead or warn
Viewing and clearing a user's warns/infractions is case sensitive
Permissions
- JOPHWarn.warn - Allows players to warn other users
- JOPHWarn.view - Allows players to view other users warnings
- JOPHWarn.warnings.clearall - Allows a player to clear all of a players warnings
- JOPHWarn.notify - Anyone with this permission will get notified when a player is warned
- JOPHWarn.infract - Allows players to give infractions to other users
- JOPHWarn.infractions.view - Allows players to view other users infractions
- JOPHWarn.infractions.clearall - Allows a player to clear all of a players infractions
Config
################################################ # JOPHWarn Config # ################################################ #Notify all people with JOPHWarn.notify when a player is warned/infracted notifyadmins: true #Enable kick feature? enablekick: true #The maximum amount of infractions a players gets before they are kicked kickafter: 3 #kick message kickmessage: 'Slow down, you are gonna get banz0rd' #enable ban feature? enableban: true #ban after how many infractions? banafter: 10 #Ban message banmessage: 'You have reached the maximum allowed infractions' ################################################ # JOPHWarn Custom Commands # ################################################ #!!!!! %p will be replaced with the players name !!!!!# #!!!!! %w will be replaced with the warn reason !!!!!# # Custom commands are for infractions, not warnings #enable customcommand1? enablecustom1: false #execute custom command after: custom1infractions: 5 #custom command1 (use %p for player) custom1command: 'tempban %p 1d' #enable custom command2? enablecustom2: false #execute custom 2 after custom2infractions: 2 #custom2 command (use %p for player) custom2command: 'jail %p jailname' #enable custom command3? enablecustom3: false #execute custom custom 3 after? custom3infractions: 1337 #custom3 command (use %p for player) custom3command: 'deop %p' #enable custom command4? enablecustom4: false #execute custom 4 after custom4infractions: 1337 #custom4 command (use %p for player) custom4command: 'jail %p jailname2' #enable custom command5? enablecustom5: false #execute custom 5 after custom5infractions: 1337 #custom5 command (use %p for player) custom5command: 'jail %p jailname3' #enable custom command6? enablecustom6: false #execute custom 6 after custom6infractions: 1337 #custom6 command (use %p for player) custom6command: 'jail %p jailname4'
Screenshots
I have one more Idea, could you please add a amount of time after the warning is cleared? (Just If enabled in config of course, maybe also configurable amaount of time, I think one month would be good)
For example the warning will be deleted after a month:
@JOPHESTUS
Great! :)
The file wasnt approved at the time of writing ;)
@GlabbichRulz
It's listed on changelog. I added a %w value for configs, so if you do for a custom command 'ban %p %w' It will ban them for the warning reason
@JOPHESTUS
Whats new? :D
UPDATED TO V 1.6.6
Awaiting approval
@GlabbichRulz
I could implement this. Also, sorry everyone who's been waiting for new features, I've been caught up with school and other RL issues.
@JOPHESTUS
Yep, you already have %p, do you also have a variable with the text after the command?
for example:
@GlabbichRulz
Custom commands are all defined in the config.yml file
@JOPHESTUS
Is there also a variable avaiable for custom commands?
@lol768
https://github.com/JOPHESTUS
Edit: and I added a link on the page
I noticed you released this plugin under the GNU GPLv3 license which is an *open-source* license, however I'm having trouble locating the source code. It's not in the jar, or linked from the main page.
Could you inform me as to where I can find it?
@GlabbichRulz
Please type /warn player reasongoeshere Screenshot:
It's always had warning reasons :P
At the moment MySQL is not an option, mainly because I have no idea how to use it :P
Okay, I will explain again and I have one more feature request:
1) Reason to Warnings
I think its useless to warn People if they dont know what they have done. Normally I can write /kick xx Griefing and xx nows that he was kicked for griefing. Now, I want to be able to write Reasons after /warn xx.
2) MySQL Storage
What do you think about saving warnings in a mysql table? I think it could look like this:
That way it would be possible to show the warning list on the homepage.
@cacman14
I will have a try this weekend, I have never used timing before though.
@GlabbichRulz
I don't really understand, sorry :(
Could you add multipleargs behind /warn player,
so I could type the reason and then write the reason to the customcommand with a variable?
for example:
I have a suggestion for an upcoming feature!
My suggestion is one of these (I don't know which suggestion would be easiest to do, but all of the suggestions are pretty much the same):
-Make a way so that after 24 hours a warning was issued, the warning count for the certain player goes back down to '0'.
-Make it so that once a new day comes, every 24 hours, at midnight, etc. (Not Minecraft time; this should be in real-life time), all player's warning counts are reset to '0'.
I would like one of these suggestions approved because I believe every player deserves a "new start" every single day. If a player was 1 warning away from being banned, and the first warning they get on a "new day" gets the player banned banned, I won't feel like that is fair.
Thank you for reading my comment!
JOPHWarn 1.6.5 Uploaded (Awaiting approval)
Added: Timestamps to warnings
@hontiris1
JOPHWarn V1.6.4 released
@dylpickles1997
ikr
I just ssawwww youu