Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.
/ BanInfo Public archive
forked from TableStudio/BanInfo

Plugin for PocketMine-MP. Shows information about banned player (date, reason, etc.) and player's ban history.

License

Notifications You must be signed in to change notification settings

WeekThor/BanInfo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BanInfo

PocketMine-MP plugin, that displays information about player (or IP) active ban and saves players ban history.

Features

  • Display information about player's or IP's active ban.
  • Display player's ban history since plugin installation.
  • Multi-language support individually for each player based on the device lang.
  • You can overrite plugin's messages as you want, just follow Instruction.

Commands

  • /bi <player> – Display information about banned player.
  • /bi-ip <IP> – Display information about banned IP adress.
  • /pbans <player> [page] - Display player's ban history.
  • /clearhistory <player> [days] - Clear ban history about specified player older than [days] days or, if not specified, delete all.
  • /bans2history - Create a banned players' history based on banlist (only active bans).
  • /purgebans [days] - Removes all history older than [days] (default: 30)

Permissions

  • baninfo.commands.baninfo – Allow to use /bi
  • baninfo.commands.baninfo.ip – Allow to use /bi-ip
  • baninfo.commands.history - Allow to use /pbans
    • baninfo.commands.history.other - Allows to see other players' history
  • baninfo.commands.clearhistory - Allow to use /clearhistory
  • baninfo.commands.bans2history - Allow to use /bans2history
  • baninfo.commands.purgehistory - Allow to use /purgebans

Overrite messages

To change the plugin messages (or create your own non-official translation), you must create a .yml file called language code in /plugins/BanInfo/locales/.

For example: /plugins/BanInfo/locales/en.yml.

Now enter the key (codename) of the message nd the new value, like this:

baninfo.player.description: "Information about player's active ban"
baninfo.player.usage: "§c§lUsage: §r§7/baninfo <player>"
baninfo.player.not_banned: "§4[BanInfo] §cPlayer not banned"
month:
    - January
    - February
    - ...
    - December

Messages codenames you can get here.

If there is no translation of any message in your .yml file, then the default message will be used.