夜间攻击
摘要
此插件可在夜间开启 PVP。或者白天,随你(服务器管理员)的喜好!
非常适合营造特别危险的夜晚。
功能
- 在夜间开启 PVP,或按配置在白天开启。
- 高度可配置。
- 轻松自定义插件中使用的文本。
- PVP 开始和结束时播放音效。
- PVP 开始时改变难度(从简单到困难)。
- 每个世界单独处理
- 可选择在白天/夜间禁止放置火/熔岩
配置
名为 config.yml 的文件位于你的 plugins/NightAttack/ 目录中,用于修改插件的设置。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89 | pvp:
# 是否在夜间启用 PVP。
# 如果为 false,则改为在白天启用 PVP,并在夜间禁用。
enableAtNight: true
time:
# MC 中白天开始的时间
dayStart: 23850
# MC 中白天结束的时间
dayEnd: 12300
difficulty:
# 当 PVP 开启时是否更改难度。
changeDifficulty: true
# 在该世界启用 PVP 时的难度。
# 可以是 HARD、NORMAL、EASY 或 PEACEFUL。
pvpDifficulty: HARD
# 在该世界禁用 PVP 时的难度。
normalDifficulty: EASY
sound:
# 是否在 PVP 开始或结束时播放音效。
playSound: true
# 是否在 PVP 开始时播放音效。
startSoundPlay: true
# 是否在 PVP 结束时播放音效。
endSoundPlay: true
# PVP 开始时播放的音效 ID。
startSound: AMBIENCE_CAVE
# PVP 结束时播放的音效 ID。
endSound: CHICKEN_HURT
messages:
# 当 PVP 状态改变时发送消息。
sendPVPChangeMessages: true
# 向加入的玩家发送关于该世界 PVP 的消息。
sendJoinMessages: true
# 当玩家在世界之间切换时发送 PVP 状态。
sendChangeWorldMessages: true
restrict:
# 是否限制方块/火焰/其他物品。
# 这将覆盖下方的阻止配置。
restrict: false
# 是否在白天进行阻止。
# 如果想在夜间阻止,请设为 false。
atDay: true
# 是否阻止火焰。
# (通过手动放置、打火石或火焰弹)
blockFire: true
# 是否阻止使用桶放置熔岩
blockLavaBucket: true
# 如果 restrictBlockList 为 true,是否阻止 BlockList 中列出的方块
restrictBlockList: true
# 如果 restrictBlockList 为 true,要阻止的方块列表。
# 10 和 11 是熔岩,以防它们被手动放置。
blockList:
- 10
- 11
worlds:
# 是否在所有世界中使用该插件。
# 这将使下方 worlds 部分的其余内容失效
allWorlds: true
# 是否排除下列列出的世界。
# false 表示 worldlist 是一个白名单。
blacklist: false
# 此插件应生效的世界列表。
# 如果 blacklist 为 false,则视为白名单
worldList:
- world
- world_nether
- world_the_end
|
音效 ID 可以在这里找到,此配置文件不区分大小写。
权限
| 权限 | 描述 |
| nightattack.* | 授予接收者访问以下所有权限的资格 |
| nightattack.join | 允许接收者收到来自此插件的加入消息。 |
| nightattack.change | 当接收者进入不同的世界时,会收到当前 PvP 状态的消息。 |
| nightattack.sound | 接收者会收到 PvP 开始/结束的音效。 |
| nightattack.msg | 接收者会收到关于 PvP 开始/结束的消息。 |
| nightattack.status | 接收者可以使用 /pvpstatus 命令 |
| nightattack.status.others | 接收者可以使用带有世界参数的 /pvpstatus 命令 |
| nightattack.switch | 接收者可以使用 /pvpswitch 命令(默认仅限 OP 使用) |
| nightattack.norestrict | 接收者不受方块/火焰/熔岩限制的限制(默认仅限 OP 使用) |
命令
| 命令 | 描述 | 权限 |
| /pvpstatus [world] | 显示当前或指定世界的 PvP 状态和时间。 | nightattack.status, nightattack.status.others |
| /pvpswitch | 切换 enableAtNight 配置项;如果之前是夜晚,则将白天设为 PvP 时间。 | nightattack.switch |
消息
在 plugins/NightAttack/ 目录下有一个名为 messages.yml 的文件,用于修改插件发送的消息。
%pvp% 和 %time% 会被替换为当前世界的 PvP 状态和时间(夜晚或白天),这些输出的内容也可以在 messages.yml 文件中进行配置。
Night Attack
Summary
This plugin turns PVP on at night. Or day. Whatever you (the server owner) want!
Perfect for having an especially dangerous night.
- Try it out here: 108.166.190.86
Features
- Turn on PVP at night, or if configured, day.
- Highly configurable.
- Easy to customise the text used in the plugin.
- Sounds when PVP starts and ends.
- Change difficulty when PVP starts (From Easy to Hard).
- Each world is treated separately
- Option to block placement of fire/lava in day/night
Configuration
A file called config.yml is in your plugins/NightAttack/ directory and is used to modify the plugin's settings.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89 | pvp:
# If PVP is enabled at night.
# If it is false, PVP is enabled at day instead, and disabled at night.
enableAtNight: true
time:
# The time in MC that day starts
dayStart: 23850
# The time in MC that day ends
dayEnd: 12300
difficulty:
# If difficulty is changed when PVP is turned on.
changeDifficulty: true
# The difficulty when PVP is enabled in that world.
# This can be HARD, NORMAL, EASY or PEACEFUL.
pvpDifficulty: HARD
# The difficulty when PVP is disabled in that world.
normalDifficulty: EASY
sound:
# Whether to play a sound when PVP starts or ends.
playSound: true
# Whether to play a sound for PVP starting.
startSoundPlay: true
# Whether to play a sound for PVP ending.
endSoundPlay: true
# The ID for the sound to be played at the start of PVP.
startSound: AMBIENCE_CAVE
# The ID for the sound to be played at the end of PVP.
endSound: CHICKEN_HURT
messages:
# Send a message when PVP changes.
sendPVPChangeMessages: true
# Send a message to a joining player about PVP in the world.
sendJoinMessages: true
# Sends PVP state when a player goes between worlds.
sendChangeWorldMessages: true
restrict:
# Whether to restrict blocks/fire/anything.
# This is overrides the below blocking config.
restrict: false
# Whether to block when it is day or not.
# False if you want to block at night.
atDay: true
# Whether you want to block fire.
# (through manual placing, flint and steel or fire charges)
blockFire: true
# If you want to block placing lava with a bucket
blockLavaBucket: true
# If you want to block the blocks listed in BlockList
restrictBlockList: true
# List of blocks to block if restrictBlockList is true.
# 10 and 11 are lava, just in case they are manually placed.
blockList:
- 10
- 11
worlds:
# Whether to use this plugin on all worlds.
# Invalidates the rest of the worlds section below
allWorlds: true
# Whether to exclude the worlds listed below.
# False means worldlist is a whitelist.
blacklist: false
# List of worlds that this plugin should be active in.
# Will be a whitelist if blacklist is false
worldList:
- world
- world_nether
- world_the_end
|
Sound IDs can be found here, the config for this is not case-sensitive.
Permissions
| Permission | Description |
| nightattack.* | Grants the recipient access to all the below permissions |
| nightattack.join | Recipient is allowed to receive join messages from this plugin. |
| nightattack.change | Recipient receives a message on the current PVP state when they enter a different world. |
| nightattack.sound | Recipient receives the sound for PVP start/end. |
| nightattack.msg | Recipient receives a message on PVP start/end. |
| nightattack.status | Recipient can use the /pvpstatus command |
| nightattack.status.others | Recipient can use the /pvpstatus command with an ergument for world |
| nightattack.switch | Recipient can use the /pvpswitch command (Defaults to OP only) |
| nightattack.norestrict | Recipient is not restricted by block/fire/lava restrictions (Defaults to OP only) |
Commands
| Command | Description | Permission |
| /pvpstatus [world] | Says the PVP status and time of the current or written world. | nightattack.status, nightattack.status.others |
| /pvpswitch | Switches the enableAtNight config, makes day the PVP time if it was night before. | nightattack.switch |
Messages
A file called messages.yml is in your plugins/NightAttack/ directory and is used to modify messages the plugin sends.
%pvp% and %time% are replaced with the current world's PVP status and time (night or day), the output of these can also be configured in the messages.yml file
评论 0
登录后参与评分
还没有评论,来抢沙发吧