Minigame Regenerator
Description
The minigame plugin allows users to regenerate a minigame after the round is complete. By specifying the coordinates of the top and bottom blocks (Ie. Front-top-right and back-bottom-left, like you would select a cube in WorldEdit) a "minigame area" can be defined. Any blocks within the area will be regenerated when the minigame is loaded, including items in container blocks such as Chests, Dispensers or Droppers.
A lobby can be set for each minigame in which players will be randomly spawned upon death, eliminating the need for bedrooms and sleeping before playing. Each player must register for the minigame so that players who are not participating in the game but are still online in the same world, aren't affected by the configuration.
Player configuration options can also be set for each minigame including:
- Gamemode | 0/survival or 1/creative
- Health | 1-20
- FoodLevel | 1-20
- Saturation | 1-20
- RemovePotionEffects | true or false
- ClearInventory | true or false
- GiveItem | itemName or itemName:amount or itemName:amount:byteCode
Commands
- Syntax: /minigame add <minigameName> <x1> <y1> <z1> <x2> <y2> <z2>
- Example: /minigame add Spleef 100 63 100 150 80 150
- Syntax: /minigame load <minigameName>
- Example: /minigame load Spleef
- Syntax: /minigame delete <minigameName>
- Example: /minigame delete Spleef
- Syntax: /minigame setlobby <minigameName> <x1> <y1> <z1> <x2> <y2> <z2>
- Example: /minigame setlobby Spleef 110 63 110 115 63 115
- Syntax: /minigame deletelobby <minigameName>
- Example: /minigame deletelobby Spleef
- Syntax: /minigame addproperty <property> <value> <minigameName>
- Example: /minigame addproperty GAMEMODE 0 Spleef
- Example: /minigame addproperty GIVEITEM POTION:1:16458 Spleef [NOTE: This gives the player a splash potion of slowness]
- Syntax: /minigame deleteproperty <property> <minigameName>
- Example: /minigame deleteproperty GAMEMODE Spleef
- Syntax: /minigame register <minigame>
- Example: /minigame register Spleef
- Syntax: /minigame unregister <minigameName>
- Example: /minigame unregister Spleef
Note: Multiple items can be given to players with the GiveItem command, just execute it multiple times with different items. When removing them however, due to the way they are stored, you will need to browse the Configuration in the plugins/Minigame/<minigameName>-<worldName>.yml file and find the configuration entry to specify. For example: GIVEITEM3 to remove the 4th item in the configuration. This may be fixed in a future update.
Demo Video
Development Status
- Version: 2.0
- Estimated Completion Date: 15/06/2014
- Current Status: In Development