Happy Halloween 2012
Happy Halloween 2012
This is a clone of a plugin that was made by NettoHikari in the Fall of 2011 with some updates and improvements.
You can find the plugin this was based on here: Happy Halloween
Features
This plugin loops over a certain duration and plays pranks on the players.
When the loop is executed, the plugin chooses a random player and does the following:
- Places a pumpkin on their head.
- Creates an explosion sound effect to scare them.
- Spawns a configurable amount of zombies near them.
- Strikes lightning near them.
- Gives them items.
All of the loop features can be toggled on and off in the configuration.
Got an idea that you'd like to see added? Leave it in the comments and I will consider it for addition.
Commands
- /nohalloween - Exclude yourself from being targeted by Halloween events.
- /halloween [target] - Trigger a Halloween event. Target is optional.
Target player names can be shortened in the command. Only enough of the player name is needed for a unique match to be found.
For example: /halloween s will target spy_1134 if spy_1134 is the only player name starting with s. Otherwise the command will return an error.
Configuration
The config.yml file is pretty self explanatory. Here is it's contents:
# displayJoinMessage # Should the plugin display a join message? (Boolean) Default: true # # joinMessage # Join message to display if true is set above. (String) Default: Happy Halloween! # # loopTime # Amount of time between runs in seconds: (Integer - Seconds) Default: 300 (5 minutes) # If set to 0, then the plugin will not prank players. You must use the command to do it. # # pumpkinsOnHeads # Should the plugin place pumpkins on heads? # Will not replace other headwear.(Boolean) Default: true # # explosionEffect # Should the plugin create an explosion effect near the player? (Boolean) Default: true # # spawnZombies # Should the plugin spawn zombies near players? (Boolean) Default: true # # numberOfZombies # How many zombies should the plugin spawn? (Integer) Defualt: 5 # # zombieRadius # Zombies are randomly distributed within the area near the player. # Within what radius of the player should the zombies be distributed? (Integer - distance in blocks >= 1) Default: 10 # # strikeLightning # Should the plugin strike lightning near the player? (Boolean) Default: true # # lightningRadius # Within what radius of the player should the lightning hit? (Integer - distance in blocks >= 1) Default: 20 # # giveItems # Should the plugin give items to players? (Boolean) Default: false # # itemList # A list of items to give to the player. # List should be formatted like this: # itemList: # item-id: quantity # item-id: quantity # ... add as many as you want. # Default (One Jack-O-Lantern): # itemList: # 91: 1 # For item ids look here: http://www.minecraftwiki.net/wiki/Data_values # # debug # Should the plugin output debug messages to console? (Boolean) Default: false displayJoinMessage: true joinMessage: Happy Halloween! loopTime: 300 pumpkinsOnHeads: true explosionEffect: true spawnZombies: true numberOfZombies: 5 zombieRadius: 10 strikeLightning: true lightningRadius: 20 giveItems: false itemList: 91: 1 debug: false
Permissions
- halloween.nohalloween - Allows you to use the /nohalloween command.
- halloween.halloween - Allows you to trigger the Halloween event.
Source Code
Source code is included in the jar. Feel free to modify this plugin in any way you see fit so long as you state that I was the original author.
-
View User Profile
-
Send Message
Posted Nov 7, 2012I'm sorry that I didn't add requested features in time for Halloween. This plugin isn't very widely used and because of that I decided to stop maintaining it. If anyone wants to fork this plugin and continue development, go right ahead.
-
View User Profile
-
Send Message
Posted Oct 30, 2012Perfect for halloween celebrations on lordran!!!!!!! XD
-
View User Profile
-
Send Message
Posted Oct 30, 2012@sirmyllox
It breaks redstone clocks. There probably is a way to change the time without that happening, but I haven't found it yet.
-
View User Profile
-
Send Message
Posted Oct 28, 2012@spy_1134
freeze time at night would be cool. but when talking in #multiverse they dont seem to be happy about having Worlds with frozen time "it breaks things" was the comment back .. so ..
I have a seperate World for a halloween map, so i have a script that runs every 5 minutes to do the command "/time night halloween"
-
View User Profile
-
Send Message
Posted Oct 25, 2012@wumpyc
When it's finished. I'm not sure about exactly how to freeze time as night so I'm reverse engineering other plugins that do it.
-
View User Profile
-
Send Message
Posted Oct 24, 2012When are you releasing an update?
-
View User Profile
-
Send Message
Posted Oct 23, 2012@Menphis88
When the plugin loads up the configuration almost all of the comments are removed. There's nothing you can do about the comments but it shouldn't remove the actual configuration values so it should still work just fine. Just take a look at the config section above for all of the necessary information.
@wumpyc
I was thinking of adding this too. I'll look into it tomorrow.
@sirmyllox
I'll add a world blacklist option in the configuration with the next update.
-
View User Profile
-
Send Message
Posted Oct 23, 2012Hey.
very cool plugin :D
question tho, is there any possibility to limit this to a specific World? with config or permissions?
Cheers sirmyllox
-
View User Profile
-
Send Message
Posted Oct 22, 2012Could you add a feature: Permanent Night XD
-
View User Profile
-
Send Message
Posted Oct 22, 2012Hey Dude i love your plugin BUT, for some reason the only thing in my config is:
I dont have any other options.
Hope you can help me out.
-
View User Profile
-
Send Message
Posted Oct 20, 2012@Sk8Sanctified
Working on it now.
EDIT: Finished up 1.1 and it's awaiting approval now. Check the new configuration values.
-
View User Profile
-
Send Message
Posted Oct 19, 2012I like it! Great plugin.
-
View User Profile
-
Send Message
Posted Oct 19, 2012Rofl nice, and easy yet sweet halloween plugin. Could you possibly and treats as well into the loop?
So it can be a trick or treat type of deal?