黑名单可以禁止玩家做一些事,这是一些情况:
禁止玩家挖金矿
当找到钻石时通知所有管理员
当放置附魔台时告诉玩家一些事
这是一个示例配置:
# Deny lava buckets [lavabucket] ignore-groups=admins,mods on-use=deny,tell message=Sorry, you can't use lava buckets! # Deny some ore [goldore,ironore] ignore-groups=admins on-break=deny,tell,notify # No TNT! [tnt] ignore-groups=admins on-place=deny,notify,kick
每个世界都会有配置文件
[*]worlds/world/blacklist.txt [*]worlds/world_nether/blacklist.txt [*]worlds/mining_world/blacklist.txt这是格式
[a list of items/blocks to match] event to watch=what to do event to watch=what to do event to watch=what to do option=value
- 是注释行
可以使用ID和名字: [wood,brick,glass]
可以增加数据值: [wood:0]
多个数据值用;隔开 Multiple data values can be matched by separating each one with a semicolon (;): [wood:0;2;3]
也可以用范围: [wood:2-3]
可以用大于等于 小于等于 [wood:>=2,<=3]
你也可以这样: [wood:0;>=2,grass:1-2]
事件
on-break on-destroy-with on-place on-use on-interact on-drop on-acquire on-dispense
行动
deny allow notify log tell kick ban
选项
ignore-groups ignore-perms comment message
示例
[lavabucket,waterbucket,bucket] on-use=deny,tell [tnt] ignore-groups=admins on-place=deny,notify,kick [obsidian] ignore-groups=admins,obsidian on-place=deny,tell on-break=deny,tell
记录的参数: Console File Database
CONSOLE: 控制台
FILE 文件
%Y the year (YYYY)
%m the month (MM)
%d the day (DD)
%W the week of the year (00-52)
%H 24-hour time (HH)
%h 12-hour time (HH)
%i the minute (mm)
%s the second (ss)
%u the user’s name
%% translates to a single percent sign “%”
可用变量
数据库
示例
CREATE TABLE IF NOT EXISTS `blacklist_events` ( `id` int(11) NOT NULL AUTO_INCREMENT, `world` varchar(10) NOT NULL, `event` varchar(25) NOT NULL, `player` varchar(16) NOT NULL, `x` int(11) NOT NULL, `y` int(11) NOT NULL, `z` int(11) NOT NULL, `item` int(11) NOT NULL, `time` int(11) NOT NULL, `comment` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) );