Arena Picker

From MBedwars
Revision as of 12:42, 31 October 2019 by Marcely1199 (talk | contribs)
Jump to navigation Jump to search

! Legacy Warning !

You are currently visiting a prehistoric website of the Marcely's Bedwars plugin for v4 and older.

In 2021, we released version 5 and completely overhauled the wiki. A lot of information that you find here likely won't be up-to-date anymore. You may find the updated wiki on: https://wiki.mbedwars.com

There are several other ways to pick an arena instead with the arena name.
You can use them where ever the arena instance is getting picked using the name.
They are currently NOT working for signs or hubvillager.

Types

%random%

Picks a random arena.

%random_lobby%

Picks a random arena with a condition: The arenas state must be lobby.

%random_lobby_joinable%

Picks a random arena with two conditions: The arenas state must be lobby and there must be space for the player to join.

%random_ingame%

Picks a random arena with a condition: The arenas state must be ingame.

%random_lobby_running%

Picks a random arena with a condition: The arenas state must be ingame or lobby.

%best_lobby%

Picks a random with these conditions:

  • The arenas state must be lobby
  • It's the arena with the most players
  • -> If it's full then it's picking an arena with less players
  • If there are multiple arenas with the same amount player, then it'll pick a random one

Conditions [COMING SOON]

You may add conditions to your Arena Picker.

An example: %random[players_per_team>=2 AND teams=4 AND status=2]%
By that only arenas with

  • 2 or more players per team
  • and 4 teams
  • and "lobby" as their current state

will be taken by the Arena Picker.

Possible comparisons

  • =  : equal
  • != : not equal
  • >  : greater than
  • <  : less than
  • => : greater than or equal
  • <= : less than or equal

Variables

  • players_per_team
  • teams
  • total_players
  • ingame_players
  • status 1=Stopped, 2=Lobby, 3=Running, 4=Reseting, 5=End lobby