本帖最后由 归尘. 于 2020-2-21 12:38 编辑

asdszxasdegzbcnfjrvdsewrtsdagxa

    BanSystem                                                    封禁系统

asdszxasdegzbcnfjrvdsewrtsdagxa

     插件介绍

  Why BanSystem?

  BanSystem 是基本服务器必备的插件,它可以更好的处理封禁/禁言/踢出玩家,信息全自定义.

  BanSystem 特点

  • 定时禁言/封禁
  • 亦可取消禁言/封禁
  • 支持Yaml/MongoDB/MySql


  授权搬运




     基础帮助

  命令/权限篇

  命令
/ban <Player> <ID> (封禁指定玩家, ID需与CONFIG.YML中对应)
/banlog <Player> (仅当你使用时 MongoDB/MySql 才有效.)
/mute <Player> <ID> (禁言指定玩家. ID需与CONFIG.YML中对应)
/mutelog <Player> (仅当你使用时 MongoDB/MySql 才有效.)
/unban <Player> (解封指定玩家.)
/unmute <Player> (解除指定玩家禁言.)
/check <Player> <ban|mute> (检查玩家是否处于封禁/禁言状态.)
/kick <Player> (踢出指定玩家.)```


  权限
/ban - bansystem.command.ban
/banlog - bansystem.command.banlog
/mute - bansystem.command.mute
/mutelog - bansystem.command.mutelog
/unban - bansystem.command.unban
/unmute - bansystem.command.unmute
/check - bansystem.command.check
/kick - bansystem.command.kick```


  配置篇 / 已做注汉化

# 储存方式 (Yaml MySql MongoDB)
Provider: Yaml
MySql:
  Host: "127.0.0.1"
  Port: "3306"
  Database: "bansystem"
  User: "root"
  Password: "cheescake"
MongoDB:
  Uri: ""
  Database: "bansystem"

# 封禁原因 -1=永久
BanReasons:
  Count: 5
  "1":
    Reason: "Hacking"
    Seconds: 3600
  "2":
    Reason: "Bugusing"
    Seconds: 7200
  "3":
    Reason: "Reason 3"
    Seconds: 86400
  "4":
    Reason: "Reason 4"
    Seconds: 604800
  "5":
    Reason: "Reason 5"
    Seconds: -1
# 禁言原因
MuteReasons:
  Count: 3
  "1":
    Reason: "Insults"
    Seconds: 3600
  "2":
    Reason: "Advertising"
    Seconds: 7200
  "3":
    Reason: "Racism"
    Seconds: -1

Messages:
  Prefix: "&8? &3BanSystem &8| &7"
  NoPermission: "&c你没有足够的权限来执行此命令."
  BanSuccess: "&a玩家r &e%player% &a已被封禁."
  MuteSuccess: "&a玩家 &e%player% &a已被禁言."
  KickSuccess: "&a玩家 &e%player% &a已被踢出游戏."
  AlreadyBanned: "&c此玩家已经被封禁."
  AlreadyMuted: "&c此玩家已经被禁言."
  UnbanSuccess: "&a玩家 &e%player% &a已被解封."
  UnmuteSuccess: "&a玩家 &e%player% &a已被解除禁言."
  PlayerNotBanned: "&c此玩家未被封禁."
  PlayerNotMuted: "&c此玩家未被禁言."
  PlayerNotOnline: "&c玩家当前不在线."
  MustNumber: "&c原因必须是数字. ( 1 and %max%)"
  Reasonlimit: "&c在此ID下找不到指定原因."
  BanScreen: "&3你已被封禁. &3原因: &7%reason% &3ID: &7%id% \n&3剩余时间: &7%time%"
  MuteScreen: "&c你已被禁言.\n&c原因: &7%reason% &cID: &7%id%\n&c剩余时间: &7%time%"
  KickScreen: "&3你已被踢出.\n&3原因: &7%reason%"
  BanReasonFormat: "&eID: &7%id% &8| &e原因: &7%reason%"
  MuteReasonFormat: "&eID: &7%id% &8| &e原因: &7%reason%"
  NoDataFound: "&c未找到数据."
Unit:
  Days: "天"
  Day: "天"
  Hours: "小时"
  Hour: "小时"
  Minutes: "分钟"
  Minute: "分钟"
  Seconds: "几秒钟"
  Permanent: "永久"
Check:
  Ban:
    Info: "&a加载数据中..."
    Player: "&a玩家: &e%Player%"
    Reason: "&a原因: &e%reason%"
    ID: "&aID: &e%id%"
    Banner: "&a执行者: &e%banner%"
    Date: "&a日期: &e%date%"
    RemainingTime: "&a剩余时间: &e%time%"
  Mute:
    Info: "&a加载数据中..."
    Player: "&a玩家: &e%Player%"
    Reason: "&a原因: &e%reason%"
    ID: "&aID: &e%id%"
    Muter: "&a执行者: &e%muter%"
    Date: "&a日期: &e%date%"
    RemainingTime: "&a剩余时间: &e%time%"
Banlog:
  Info: "&a封禁: &e#%count%"
  Player: "&a玩家: &e%player%"
  Reason: "&a原因: &e%reason%"
  ID: "&aID: &e%id%"
  Banner: "&a执行者: &e%banner%"
  Date: "&a日期: &e%date%"
Mutelog:
  Info: "&a禁言: &e#%count%"
  Player: "&a玩家: &e%player%"
  Reason: "&a原因: &e%reason%"
  ID: "&aID: &e%id%"
  Muter: "&a执行者: &e%muter%"
  Date: "&a日期: &e%date%"
Usage:
  BanCommand: "&7用法: &a%command% <Player> <ID>"
  BanlogCommand: "&7用法: &a%command% <Player>"
  UnbanCommand: "&7用法: &a%command% <Player>"
  CheckCommand: "&7用法: &a%command% <Player> <ban|mute>"
  MuteCommand: "&7用法: &a%command% <Player> <ID>"
  MutelogCommand: "&7用法: &a%command% <Player>"
  UnmuteCommand: "&7用法: &a%command% <Player>"
  KickCommand: "&7用法: &a%command% <Player> <Reason>"

Commands:
  Ban: "ban"
  Banlog: "banlog"
  Mute: "mute"
  Mutelog: "mutelog"
  Unban: "unban"
  Unmute: "unmute"
  Check: "check"
  Kick: "kick"

ConfigVersion: 1




     使用图片









     插件下载

  [原帖] https://nukkitx.com/resources/bansystem.332/
  [Github] https://github.com/llama-development/BanSystem-Nukkit
  [CONFIG] config.yml (3.47 KB, 下载次数: 15)

[groupid=1701]Complex Studio[/groupid]