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 2, 2013This plugin is innefective due to the fact that it ignores flags from other plugins such as worldguard and minigame plugins. I can't use this althout I would like to.
-
View User Profile
-
Send Message
Posted Jul 1, 2013@hogofwar
Ok, thanks anyway, I will probably use your plugin (;
-
View User Profile
-
Send Message
Posted Jul 1, 2013@rfsantos1996
Ah, I will look into it eventually. If it works the way i think it works it probably would mean a rewrite of the plugin though, so it may be a little way off.
-
View User Profile
-
Send Message
Posted Jun 30, 2013Remember me PVPTime (I use that), I don't like the fact that PVPTime dont have WorldGuard support for "pvp" flag, so I cant have any region with always PVP. (recomment, you didnt answered :/)
-
View User Profile
-
Send Message
Posted Jun 29, 2013@hogofwar
You fixed the problem, I can hear sound now when it changes to night or day.
thanks a ton. Will redownload every update and I hope to see more things from you in the future.
-
View User Profile
-
Send Message
Posted Jun 28, 2013@DekuHero
Thanks a lot! Feel free to post any suggestions you want!
-
View User Profile
-
Send Message
Posted Jun 27, 2013@hogofwar
awesome, thanks for the quick reply and fix! Ill be re-downloading the new one when its approved.
This plugin makes people feel safe to go out in the morning, and it makes people fear the dark due to mobs and raiders. I and the people of my server love it.
Hope it stays updated regularly.
-
View User Profile
-
Send Message
Posted Jun 27, 2013@DekuHero
Will look into it, thanks for the report!
...And now fixed, the file is under approval now.
-
View User Profile
-
Send Message
Posted Jun 27, 2013I don't know about anyone else but the plugin works fine for me all except for the sound when it starts and ends.
Its enabled by default in the config but for some reason doesnt work for me.
No errors or anything just lack of sound.
-
View User Profile
-
Send Message
Posted Jun 26, 2013Remember me PVPTime (I use that), I don't like the fact that PVPTime dont have WorldGuard support for "pvp" flag, so I cant have any region with always PVP.
Can you do that?
-
View User Profile
-
Send Message
Posted Jun 26, 2013Nice idea!