promotional bannermobile promotional banner

Happy Halloween 2012

Abandoned
A fun plugin for Halloween

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:

  1. Places a pumpkin on their head.
  2. Creates an explosion sound effect to scare them.
  3. Spawns a configurable amount of zombies near them.
  4. Strikes lightning near them.
  5. 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.

The Happy Halloween 2012 Team

profile avatar
  • 2
    Projects
  • 28.1K
    Downloads

More from _ForgeUser7382029

  • AdminSword project image

    AdminSword

    • 27.5K
    • Bukkit Plugins

    Gives admins and others AdminSwords

    • 27.5K
    • December 11, 2012
    • Bukkit Plugins
    • +2
  • AdminSword project image

    AdminSword

    • 27.5K
    • Bukkit Plugins

    Gives admins and others AdminSwords

    • 27.5K
    • December 11, 2012
    • Bukkit Plugins
    • +2