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
| 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
-
View User Profile
-
Send Message
Posted Jul 17, 2016@djsam1
Stop your server, and after try enable and start your server after save the config file
-
View User Profile
-
Send Message
Posted Aug 5, 2015Works on 1.8 + :D GREAT!
-
View User Profile
-
Send Message
Posted Jul 19, 2014it does not work for me i need it enabled in one world and it always say night attack is disabled in this world
-
View User Profile
-
Send Message
Posted Jun 23, 2014@DahDuff Sounds that no...
-
View User Profile
-
Send Message
Posted May 12, 2014@hogofwar
does this work with 1.7.x ?
-
View User Profile
-
Send Message
Posted Mar 6, 2014How to configure to work with Multiverse-Core v2.5?
-
View User Profile
-
Send Message
Posted Feb 16, 2014What the fuck is the , 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 In the chat when i place a block ?
-
View User Profile
-
Send Message
Posted Nov 11, 2013Nice !
-
View User Profile
-
Send Message
Posted Aug 27, 2013Please add a permission node to exempt players from PvP and a node to give players PvP at all times.
Great plugin! :-) +1
-
View User Profile
-
Send Message
Posted Aug 22, 2013Great plugin, but unfortunately is not compatible with the PvP-arena. More precisely, they account for only fight all night, which is not convenient. :(
-
View User Profile
-
Send Message
Posted Aug 3, 2013Fantastic plugin! Been using this and it seems to work flawlessly with Towny & Worldguard. Highly recommended :)
-
View User Profile
-
Send Message
Posted Jul 10, 2013@gorda12498
use 0.3.2, it works fine with 1.5.2.
-
View User Profile
-
Send Message
Posted Jul 10, 2013ok, so i have a problem. i'm not sure if it's the plugin's fault (i'll check it out and edit this once i'm sure) but it seems that PVP stays off even if it's night. the message says that it is still day even though it's tick 22000. i set the config to be on at 14000 and off at 23000. I use Night Attack version 0.3 since my server is still in 1.5.2 - thanks for reading
-
View User Profile
-
Send Message
Posted Jul 7, 2013Works perfect after 0.3.2 update
-
View User Profile
-
Send Message
Posted Jul 5, 2013On our servers we have PvP system when players can kill others only at night. But PvpTime plugin has lot of bugs and plugin authtor is slowpoke. So we want restricting malicious items in night time with your Night Attack plugin.
-
View User Profile
-
Send Message
Posted Jul 5, 2013@drdeft
Could you expand on your suggestions? Do you mean what time day/night are defined as? Also, colours are supported in messages.yml, according to: http:ess.khhq.net/mc/.
I'll consider restricting malicious items, but I initially think it's sorta out of the scope of what this plugin should be...
-
View User Profile
-
Send Message
Posted Jul 4, 2013hogofwar, please add this new option to config file. Ability to disable placing fire/lava/fireballs in day time. Thank you. I'll donate after Night Attack plugin will use all good ideas from PVPtime plugin analog.
Day/night time must be configurable. Messages must support colours and be configurable.
Thank you. Please contact me drdeft@gmai.com after your plugin upgrade. I'll donate 30$.
-
View User Profile
-
Send Message
Posted Jul 3, 2013@LiLChris06
I'm going off pure theory here, but I believe PVP deny in worldguard may work, just that perma-pvp areas may not. Don't take this as fact as I have not checked myself yet.
I have started rewriting the plugin to allow per-person PVP (and hopefully allow worldguard support as well).
Hopefully I can get something working soon.
-
View User Profile
-
Send Message
Posted Jul 3, 2013@soccerstrike917
So if I have a world guard region with PVP deny, it will ignore it?
If so that is a bummer, would love to use this.
-
View User Profile
-
Send Message
Posted Jul 2, 2013@soccerstrike917
Same problem as me