Player Warnings icon

Player Warnings -----

Allow more flexibility with little punishments



Player Warnings Logo.png

About.png
Player Warnings is a simple plugin that allows staff to manage behaviour on their server. The plugin comes equipped with a number of commands to allow for up to 52 categories of warnings, all equipped with unlimited number of warnings and associated punishments. All distribution and checking of warnings can be done using in-game GUIs, allowing for easy access to warning information.
Each category has an associated name, reason, GUI Item, slot number and customisable commands and message per warning. This allows for ultimate customisation of every aspect of the plugin. Each warning category can be customised in the warningCategories.yml file. All warnings are stored in the warnings.yml, which uses player UUID to store warnings, so that if a player changes their name, their warnings still stay with them.

All categories, warnings and messages sent by the plugin are customisable in the config.yml.


Configuration.png
Code (YAML):
#Player Warnings V1.0.0 by candinoDev
#Change anything you want about this
#Please note that all messages sent by the plugin have, by default, the prefix before it

#Any settings relating to the number slot for an item, the setting include slot numbers from 0 - 53

#Plugin Prefix for In-Game messages
Prefix
: "&6[&2&lWarnings&6] "
#General colour for the main body of messages - make sure you include the "&" otherwise it won't work
GeneralColour
: "&6"
#Colour for making important bits of information stand out in a message - make sure you include the "&" otherwise it won't work
ImportantColour
: "&2&l"

#All settings for Warn Command
WarnCommand
:
  #Setting for announce warnings to all online staff members
  WarningNotify
: true
  #Settings for messages sent to staff when a player's warnings are changed (Only if WarningNotify is true)
  #Placehodlers that can be used here are:
  #%PLAYER% - player being warned
  #%REASON% - warning reason
  #%SENDER% - staff member that issued the warning
  WarningNotifyMessages
:
    #Message sent to staff when a player has a warning added
    Add
: "&c&l%PLAYER% &chas been warned for &c&l%REASON% &cby &c&l%SENDER%"
    #Message sent to staff when a player has a warning added
    Remove
: "&c&l%PLAYER% &chas had a warning removed for &c&l%REASON% &cby &c&l%SENDER%"
    #Message sent to staff when a player has all warnings for a category reset
    Reset
: "&c&l%PLAYER% &chas had all warnings reset for &c&l%REASON% &cby &c&l%SENDER%"

  #All settings for Warn Add Command
  Add
:
    #All settings for the Warn Add GUI
    GUI
:
      #Name of Add Warning GUI - You can use %PLAYER% here to use name of player being warned
      Name
: "&c&l%PLAYER% - &lAdd Warning"
      #Name of Player Skull - You can use %PLAYER% here to use name of player being warned
      SkullName
: "&c&l%PLAYER%"
      #Slot for Player Skull
      SkullSlot
: 0
      #This is the size of the GUI menu (Must be a multiple of 9 between 9 and 54)
      Size
: 9
      #Item name for "Close Menu" item
      CloseMenuItem
: "BARRIER"
      #Slot for "Close Menu" item
      CloseMenuSlot
: 8

  Check
:
    #All settings for the Warn Check GUI
    GUI
:
      #Name of Check Warning GUI - You can use %PLAYER% here to use name of player being warned
      Name
: "&c&l%PLAYER% - &lCheck Warnings"
      #Name of Player Skull - You can use %PLAYER% here to use name of player being warned
      SkullName
: "&c&l%PLAYER%"
      #Slot for Player Skull
      SkullSlot
: 0
      #This is the size of the GUI menu (Must be a multiple of 9 between 9 and 54)
      Size
: 9
      #Item name for "Close Menu" item
      CloseMenuItem
: "BARRIER"
      #Slot for "Close Menu" item
      CloseMenuSlot
: 8
      #Lore of Category Items - You can use %COUNT% here to use the warning count in that category for the player
      CategoryItemLore
: "&6Count: &c&l%COUNT%"

  Remove
:
    #All settings for the Warn Remove GUI
    GUI
:
      #Name of Remove Warning GUI - You can use %PLAYER% here to use name of player being warned
      Name
: "&c&l%PLAYER% - &lRemove Warning"
      #Name of Player Skull - You can use %PLAYER% here to use name of player being warned
      SkullName
: "&c&l%PLAYER%"
      #Slot for Player Skull
      SkullSlot
: 0
      #This is the size of the GUI menu (Must be a multiple of 9 between 9 and 54)
      Size
: 9
      #Item name for "Close Menu" item
      CloseMenuItem
: "BARRIER"
      #Slot for "Close Menu" item
      CloseMenuSlot
: 8
      #Lore of Category Items - You can use %COUNT% here to use the warning count in that category for the player
      CategoryItemLore
: "&6Count: &c&l%COUNT%"

  Reset
:
    #All settings for the Warn Reset GUI
    GUI
:
      #Name of Reset Warning GUI - You can use %PLAYER% here to use name of player being warned
      Name
: "&c&l%PLAYER% - &lReset Warning"
      #Name of Player Skull - You can use %PLAYER% here to use name of player being warned
      SkullName
: "&c&l%PLAYER%"
      #Slot for Player Skull
      SkullSlot
: 0
      #This is the size of the GUI menu (Must be a multiple of 9 between 9 and 54)
      Size
: 9
      #Item name for "Close Menu" item
      CloseMenuItem
: "BARRIER"
      #Slot for "Close Menu" item
      CloseMenuSlot
: 8
      #Lore of Category Items - You can use %COUNT% here to use the warning count in that category for the player
      CategoryItemLore
: "&6Count: &c&l%COUNT%"

  #Message for when specified player cannot be found
  UnknownPlayer
: "&cCannot find the player you want. Please try doing &l/warn help &cto show a list of commands"
  #No permission for command
  NoPermission
: "&cYou don't have permission for that command"

Code (YAML):
# Player Warnings V1.0.0 by candinoDev
# This is the categories file, where you can customise categories with the warning menus
# Tags allowed are:
# - %REASON% - provides reason listed under warning
# - %PLAYER% - player that is being warned
# - %SENDER% - staff member that is warning

# Within the warning categories, the "Slot:" setting runs from 0 - 53

# Explained warn category setup
# '1': (Slot Number - THIS CANNOT BE 0 OR THE LAST SLOT IN GUI)
#  Name: "&6Example" (Name of Warn Category and Item in GUI)
#  Reason: "&cBeing a naughty player" (Reason and Lore of Item in GUI)
#  Item: "TNT" (Item for Category in GUI)
#  Slot: 1 (Slot for Category in GUI)
#  '1': (Warn Number in Category)
#    Commands: (List of Commands Run on Warn Number)
#      - "kick %PLAYER% %REASON%"
#    Message: "&cYou have been warned for %REASON% by %SENDER%. This is your &l1st&l warning" (Message Sent to Player on Warn)
#  '5': (Warn Number in Category)
#    Commands: (List of Commands Run on Warn Number)
#      - "ban %PLAYER% %REASON%"
#    Message: "&cYou have been warned for %REASON% by %SENDER%. This is your &l5th and final&l warning" (Message Sent to Player on Warn)

# Number of Warning Categories
NumberOfCategories
: 2

'1'
:
  Name
: "&6General"
  Reason
: "&cNot following server rules"
  Item
: "TNT"
  Slot
: 1
  '1'
:
    Commands
:
     - "kick %PLAYER% &cYou have been warned by %SENDER% for %REASON%. This is your &l1st&l warning"
    Message
: "&cYou have been warned for %REASON% by %SENDER%. This is your &l1st&l warning"
  '2'
:
    Commands
:
     - "ban %PLAYER% &cYou have been warned by %SENDER% for %REASON%. This is your &l2nd&l warning"
    Message
: "&cYou have been warned for %REASON% by %SENDER%. This is your &l2nd&l warning"
'2'
:
  Name
: "&6Advertising"
  Reason
: "&cIllegal Advertising"
  Item
: "OAK_SIGN"
  Slot
: 2
  '1'
:
    Commands
:
     - "mute %PLAYER% 24"
    Message
: "&cYou have been warned for %REASON% by %SENDER%. This is your &l1st&l warning"
  '2'
:
    Commands
:
     - "kick %PLAYER% &cYou have been warned by %SENDER% for %REASON%. This is your &l2nd&l warning"
    Message
: "&cYou have been warned for %REASON% by %SENDER%. This is your &l2nd&l warning"
 

Permissions.png
Code (YAML):
permissions:
    warn.notify
:
        description
: Allows receiving of warning notification messages
        default
: staff
    warn.add
:
        description
: Allows use of '/warn add' to add a warning to a player
        default
: staff
    warn.remove
:
        description
: Allows use of '/warn remove' to remove a warning from a player
        default
: staff
    warn.check
:
        description
: Allows use of '/warn check' to check a player's warnings
        default
: staff
    warn.reset
:
        description
: Allows use of '/warn reset' to reset a player's warnings
        default
: admin
    warn.reload
:
        description
: Allows use of '/warn reload' to reload config files
        default
: admin
Commands.png
/warn help - Shows help menu of all commands available to certain player (Staff)
/warn add {player} - Opens a GUI to add a warning to player (Staff)
/warn remove {player} - Opens a GUI to remove a warning from player (Staff)
/warn check {player} - Opens a GUI to check the player's warnings (Staff)
/warn reset {player} - Opens a GUI to reset the player's warnings (Admin)
/warn reload - Reloads all the configuration files (Admin)​

Support.png
[​IMG]
[​IMG]

Side Note.png
If you like my plugin, please leave a review, it helps me a lot.

Please don't claim the plugin for yourself
If you find a bug, don't write a bad review, let me know and I can fix it
Please don't private message me on Discord because I won't reply, just ask for help in the support server
If you use this plugin, let me know and I will feature your server on here!

Any feature requests please join the Discord Support Server or message me here and I'll be happy to look into it
Resource Information
Author:
----------
Total Downloads: 144
First Release: Dec 22, 2021
Last Update: Dec 22, 2021
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings