HeroicRebuke Reloaded
Heroic Rebuke Reloaded
The original heroicrebuke is now abandoned and incompatible with recent builds. This is a drop-in replacement for the original, based off of the original code, with the blessing of the original authors. See the original thread.
Features
- Warn players for lesser infractions not meriting a kick or ban
- List a player's previous actions to track chronic violators
- Supports partial name matching for online players (Squall, ed3, and LLSEE all match SquallSeeD31)
- Supports SQLite or MySQL
- Warnings can optionally root players, preventing all movement (including teleports)
- Acknowledging your warning can optionally require a randomly-generated code, preventing automation and encouraging thorough review of the message
- Commands can also be issued from the server console
- Support for permissions, defining your own list of admins or just using Server Ops
- Configurable display colors for messages, names, and key information
Installation
HeroicRebuke works best with a database (SQLite or MySQL). The plugin is configured to look for the database connector "sqlitejdbc-v056.jar" (SQLite) or "mysql-connector-java-bin.jar" (MySQL) in the "/lib" directory of your server root. If you already have these files, you do not need to re-download them.
- Download latest .ZIP archive from the link at the top
- Extract the archive into your main server directory (archive contains directory mapping)
- Open /plugins/HeroicRebuke/config.yml and configure to taste
- Save configuration file and reload your server
- Using MySQL
- Check to be sure "mysql-connector-java-bin.jar" is in /lib (from server root)
- Set options.database to "mysql" in your config.yml
- Set options.mysql.location to the path (IP:port/DatabaseName) to your MySQL server
- It is not necessary to create a new Database for HeroicRebuke, but is recommended. The only table created currently is "warnings"
- Set options.mysql.username to a username that has access to the named Database on your MySQL server
- Set options.mysql.password to that user's password
- Save config.yml and reload your server
Configuration
config.yml - The config file contains default text colors, options, and designated HeroicRebuke admins (if not using the Permissions plugin). This file is saved in the YAML format, so please be sure to maintain the formatting and change only the element values.
Default configuration:
# HeroicRebuke Configuration ## Color options ## message: Text color of all notifications, wrapped around info and names. ## name: Color for player names. ## info: Color for informational elements to make them "pop", such as command usage #Color is defined according to the Bukkit enum ChatColor #Acceptable entries: ##BLACK ##DARK_BLUE ##DARK_GREEN ##DARK_AQUA ##DARK_RED ##DARK_PURPLE ##GOLD ##GRAY ##DARK_GRAY ##BLUE ##GREEN ##AQUA ##RED ##LIGHT_PURPLE ##YELLOW ##WHITE # #If color entered is inappropriate, HeroicRebuke will default to the following values: ##message: RED ##name: DARK_AQUA ##info: GOLD colors: message: RED name: DARK_AQUA info: GOLD options: database: sqlite ##ACCEPTABLE VALUES: ###sqlite - Expects "sqlitejdbc-v056.jar" in the "/lib" directory of your server root, and uses SQLite. ###mysql - Expects "mysql-connector-java-bin.jar" in the "/lib" directory of your server root, and uses MySQL. MUST configure options.mysql section for this to work ###<anything else> - HeroicRebuke will not use a database and no data will persist over a server restart permissions: Permissions #String containing which permissions system to use. Acceptable values: ##Permissions - builtin bukkit perms or any modern permissions plugin ##Config - Define your own HeroicRebuke admins below under the "admins:" property (untested) ##Ops - Only Server Ops can use HeroicRebuke (Ops can use HeroicRebuke anyway regardless of setting) code: use: true # If true, a random alphanumeric code will be generated on warning, preventing users from automating the /warn acknowledge command. length: 5 # Length of random code string to use server_name: SERVER # Name to display when warnings are issued from the server console block_move: true # Whether or not to restrict a user from moving (and teleporting) when being warned. Move block is aggressive. only_warn_online: false # If true, you can only warn players who are online (enables partial matching) lines_per_page: 5 # How many warnings to display when using /warn active and /warn list commands timeformat: MM/dd/yyyy HH:mm:ss z # Uses format strings from Java SimpleDateFormat. Read all here: http://download.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html mysql: # If using "database: mysql", you must define the location, username and password to your MySQL server location: localhost:3306/HeroicRebuke username: myuser password: mypass #If you want to use the "Config" permissions system, define your admins here #Each line below "admins:" *MUST* be formatted as such-> " - 'username'" #Four spaces, hyphen, space, single quote, name of the admin, single quote admins:
Permissions
heroicrebuke.add (use /warn add) heroicrebuke.clear (use /warn clear) heroicrebuke.delete (use /warn delete) heroicrebuke.active (use /warn active) heroicrebuke.info (use /warn info) heroicrebuke.list (use /warn list - Displays only YOUR previous warnings) heroicrebuke.list.others (use /warn list <name> to display OTHER players' warnings) heroicrebuke.notify (send a notification when any user acks a warning) Recommended Settings: Admins: - 'heroicrebuke.*' Moderators: - 'heroicrebuke.add' - 'heroicrebuke.clear' - 'heroicrebuke.active' - 'heroicrebuke.info' - 'heroicrebuke.list.others' Players: - 'heroicrebuke.list'
Changelog
v1.4.2 * Tested new perms setup proper * Fixed new perms setup v1.4.1 (beta) * Removed old permissions checks v1.4 + Added heroicrebuke.notify * Fixed colors (if everything is white, just delete that section from the config, it'll be reset to defaults) * Fixed broken message templates (caused "[{0}] message" in console) + Started other feature requests v1.3-a2 + Changed to new Bukkit event system. * Fixed ban thresholds * Removed some legacy permissions stuff v1.3 (Initial reloaded release) * Changed to new event system * Fixed strangeness with 1.0 and 1.1 + Added "Movement disabled! Do this:" messages + Throttled those messages * More
v1.2 and earlier: See original plugin
Source
Available at GitHub
@AvariceSyn
That already exists, I'm not sure why it wasn't in the documentation I copied from the forum thread... Under options, add " only_warn_online: false"
Would love to see the addition of ability to warn players who are offline, otherwise, awesome job!
Director of Herocraft Development here...
Requesting you to change the name from Hero*.
We don't want to be tagged on continued development of this plugin at a later date we may choose to revive this but at this moment we don't have the time.
@Dr_Proffesor It's just configuring colors that might not work - the thing that was used to turn "LIGHT_GREEN" into a color enum went away, and I haven't replaced it properly yet. Thanks for your help testing!
BTW colors have worked fine for me so far
@mallegonian
ty i shall
@Dr_Proffesor I'm removing some super legacy (think niji p2) permission checking stuff too. I need to stop coding to procrastinate ^.^
Try the -a2 build once it's approved.
At the moment I'm pretty busy, I just made it work for my use and updated it for 1.2.3, haven't tested it too much. If you'd like to muck around with it I'll post code.
When I first redid it for 1000ish, I found a getServer().a(player); or something, it wouldn't compile and I couldn't find any docs, so I just commented it - I think that's what did the banning. I replaced it with player.setBanned(true);, so it should ban them, but won't use MCBans or anything. I've uploaded a new build, give it a while to be approved.
No what i found what it was is i set it to 3 and on the final warn they get kicked and it says they are banned. but they come right back. Then when i look at thei record it says they only have 2 warnings and the last one i put isnt there
I have set my warn limit to 3. people get kicked and then they get the banned message but are able t come right back. i have no similr plugins. please fix this or see if others have this problem
I remember the original to have the option to automatically ban the warned user after x-amount of warnings.
Is this still in?
I have pex but it says
<<code lua22:21:30 [INFO] [HeroicRebuke] Enabling HeroicRebuke v1.2.6.86 22:21:30 [INFO] [HeroicRebuke] Permission system possibly not present. 22:21:30 [INFO] [HeroicRebuke] Loaded 0 active warnings. 22:21:30 [INFO] [HeroicRebuke] 1.2.6.86 enabled.>>
<</code>>