Skip to content

Repository files navigation

cucumber

Current stable version: 3.0.0

cucumber is a complete moderation plugin for PocketMine-MP which features ban/mute management and logging of various significant events.

If you are upgrading from v1.6.2, just update the cucumber .phar. Do not delete configuration files, they will automatically be updated and save your settings :-)

Punishment Management

cucumber enables banning of players and IPs, muting and warning.

CommandDescriptionUsageNotes
/banBan a player by name/ban <player> <duration>|inf [reason]See below for the format of the duration argument
/banlistSee the list of bans/banlist [-all|-a]The -all flag specifies that all bans should be displayed, including those that have expired
/pardonPardon a player/pardon <player>This removes the ban from the player's punishment history and from /banlist -all
/ipbanBan an IP/ipban <player>|<ip> <duration>|inf [reason]You can enter either a player or an IP as the first argument, the plugin will infer which was entered and act accordingly. See below for the format of the duration argumment
/ipbanlistSee the list of IP bans/ipbanlist [-all|-a]The -all flag specifies that all IP bans should be displayed, including those that have expired
/ippardonPardon an IP/ippardon <ip>This removes the IP ban from the player's punishment history and from /ipbanlist -all
/ubanBan any player that joins using an IP. Irreversible/uban <player>|<ip> [reason]Ubans are permanent and cannot be undone, hence they have no duration argument. You can enter either a player or an IP as the first argument, the plugin will infer which was entered and act accordingly
/muteMute a player/mute <player> <duration>|inf [reason]See below for the format of the duration argument
/mutelistSee the list of mutes/mutelist [-all|-a]The -all flag specifies that all mutes should be displayed, including those that have expired
/unmuteUnmute a player/unmute <player>This removes the mute from the player's punishment history and from /mutelist -all
/warnWarn a player/warn <player> <duration>|inf [reason]See below for the format of the duration argument
/warningsSee a player's warnings/warnings <player> [-all|-a]The -all flag specifies that all of the player's warnings should be displayed, including those that have expired
/mywarningsSee your warnings/mywarnings [-all|-a]The -all flag specifies that all of the sender's warnings should be displayed, including those that have expired
/delwarnDelete a specific warning/delwarn <id>Warnings are identified with an ID that should be displayed in /warnings and upon the creation of the warning
/historySee a player's punishment history/history <player>This includes expired punishments. It also includes IP bans pertaining to the player's IP. The player's first join and last join dates are also displayed

Duration

In a duration argument:

  • y: year
  • M: month
  • w: week
  • d: day
  • h: hour
  • m: minute

For instance, 1y3M means one year and three months (this is the same as 15M). 1w2d12h means one week, two days, and twelve hours (this is the same as 9d12h).

For an infinite duration (a punishment that never expires), you can enter one of the following: inf, infinite, perm, permanent, -1.

Logging

cucumber logs various events¹ to a path specified in config.yml. Several loggers (including custom ones) can also be defined in config.yml. (By default, a BaseLogger exists that logs everything to log_out.txt.) Messages are written to the file every 10 seconds asynchronously.

¹ cucumber logs the following: join, join attempt (if a player attempts to join while banned), quit, chat, chat attempt (if a player attempts to chat while muted), command

Miscellaneous

cucumber also has miscellaneous moderation commands that are not related to punishment management.

CommandDescriptionUsageNotes
/rawtellSend a raw message to a player/rawtell <player> <message> [-nomessage|-nom] [-popup|-p] [-title|-t]-nomessage does not send a chat message
-popup sends a popup
-titlesends a title
/logLog a message/log <message> [-severity|-s <severity>]-severity specifies the severity at which to log the message. See below for more informaiton about severities
/alertBroadcast a message to the server/alert <message> [-nomessage|-nom] [-popup|-p] [-title|-t]-nomessage does not send a chat message
-popup sends a popup
-title sends a title
/ipGet a player's IP and their alt accounts/ip <player>This shows every account that has the same IP as the player
/vanishVanish from other players' sight/vanish

Severity

In a severity tag:

  • log: Normal, ordinary events
  • notice: Normal but interesting events
  • important: Significant events
  • alert: Exceptional events that likely require monitoring

If a message is logged at the important severity, for instance, loggers that listen to higher severities (ex. alert) will not pick it up. This is useful if you want to have an alert logger that sends you a Discord notification, for example.

About

Moderation plugin for PocketMine-MP

Resources

Stars

27 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages