Night Attack

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

PermissionDescription
nightattack.*Grants the recipient access to all the below permissions
nightattack.joinRecipient is allowed to receive join messages from this plugin.
nightattack.changeRecipient receives a message on the current PVP state when they enter a different world.
nightattack.soundRecipient receives the sound for PVP start/end.
nightattack.msgRecipient receives a message on PVP start/end.
nightattack.statusRecipient can use the /pvpstatus command
nightattack.status.othersRecipient can use the /pvpstatus command with an ergument for world
nightattack.switchRecipient can use the /pvpswitch command (Defaults to OP only)
nightattack.norestrictRecipient is not restricted by block/fire/lava restrictions (Defaults to OP only)

Commands

CommandDescriptionPermission
/pvpstatus [world]Says the PVP status and time of the current or written world.nightattack.status, nightattack.status.others
/pvpswitchSwitches 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


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files