RedstoneFuture / missilewars

MissileWars is a famous, fun and fast minigame spigot-plugin for Minecraft
https://www.spigotmc.org/resources/62947
GNU General Public License v3.0
13 stars 9 forks source link

Reimplementation / Improving of map-vote #98

Closed RedstoneFuture closed 1 year ago

RedstoneFuture commented 1 year ago

1. Reworking game start process for map vote, Reworking map vote

There were a few places in the game startup process that needed fine-tuning, because in case of a Map Vote we habe a phase between the "start of the lobby" and the "initialization of the arena", which needs to be considered.

2. Adding player permission check for "mw.vote"

3. Adding tab completion for vote command.

grafik

4. Update of the /mw start command


Local File changes for tests:

copy of arena0.yml -> arena1.yml

arena0.yml

name: "arena0"
display_name: "&eDefault map 0"
display_material: "STONE"
template_world: "default_map"

arena1.yml

name: "arena1"
display_name: "&eDefault map 1"
display_material: "STONE"
template_world: "default_map"

lobby0.yml

map_choose_procedure: "MAPVOTING"
possible_arenas:
- "arena0"
- "arena1"

config.yml

sidebar:
  title: '&eInfo ●&6•'
  member_list_style: '%team_color%%playername%'
  member_list_max: 4
  entries:
  - '§7Time left:'
  - §e» %time%m
  - ''
  - 'Lobby: %lobby_name%'
  - 'Arena: %arena_name%'
  - ''
  - '%team1% §7» %team1_color%%team1_amount%'
  - ''
  - '%team2% §7» %team2_color%%team2_amount%'