Simple Warning System

Discussion in 'Archived: Plugin Requests' started by Aeron, Oct 26, 2011.

  1. Offline

    Aeron

    Hello there, I really hope someone could code this as a very simple plugin, that can do the following things:

    Admins or Moderators could put Warning to a player and whenever he chats, before his nick appears a big fat red !, that indicates the warning level and other players will see that as a potential threat.

    The ability to put timed warnings, very similar to Essentials plugins /tempban <NAME> <TIME>

    Ability to war a player multiple times and when the limit has been reached ban the player.

    Since I am using Towny and it's chat plugin, it should support that and a warned player in chat could look like this:

    ! [Town] Lord Bob: Yeah, right, I didn't do that!

    A player warned 3 times (etc) should look like this:

    !!! [Town] Lord Bob: Yeah, right, I didn't do that!

    Commands:

    /warning <NAME> <TIME> <REASON>

    <NAME> - Players name in the game aka Nickname
    <TIME> - Time in seconds which if reached removes the warning from the player
    <REASON> - If the player has been checked by another Moderator, Admin or a simple user, it prints out in chat all the reasons why he has been warned and time left.

    /warning level <NAME>

    Prints out the warning level and all the reasons why the player has been warned:

    --------------- WARNING LEVEL ----------------
    Player: Bob
    Warnings: 3
    Reasons:
    1. Being racist
    (Time left: 10 min 30 sec)
    2. Abusing noob players
    (Time left: 4 days 30 min 11 sec)
    3. Griefed a house in his city
    (Time left: 29 days 59 min 43 sec)
    -------------------------------------------------------

    Hint about the message: the ----- should fit the chat screen and WARNING LEVEL should be on top in center between ----. The time should be displayed on the second row behind reason to remove any ugly text when the new line cuts it, because the reasons could be long.

    /warning version

    Prints out the current version of the plugin

    /warning help
    /warning ?

    Prints out all the commands associated with this command

    /warning remove 3 <NAME>

    Removes third warning from a player with <NAME> nick

    The saving of the warnings could be anything: Flatfile (.txt format), SQLight, MySQL (ability to connect to a database, including a remote)

    Also I am using bPermissions, very good plugin from all the permissions plugins out there, and the warning system should support it with nodes something like this:

    warning.give
    warning.remove
    warning.help
    warning.version
    warning.level

    If there are no permissions plugins, the plugin should support default OPs with all the commands.
     
  2. Offline

    keaton64

    I would really love to see this made.
     

Share This Page