addCommand("get",(sender,arg)->commandGetHealth(sender),"Displays current health value.");
Arrays.asList("get"),
addCommand("reset",(sender,arg)->commandReset(sender),"Gives every player full health and resets 'isFailed' to false. GameMode becomes Survival.");
Pair.pair((sender,arg)->commandGetHealth(sender),"Displays current health value.")
addCommand("add",(sender,name)->commandActivePlayer(sender,name,true),"Adds a player to the Plugin.");
);
addCommand("remove",(sender,name)->commandActivePlayer(sender,name,false),"Removes a player from the Plugin.");
commands.put(
addCommand("totem one",(sender,arg)->commandSetTotemMode(sender,TotemManager.Mode.One),"Totem of Undying: At least one player needs to hold it.");
Arrays.asList("reset"),
addCommand("totem all",(sender,arg)->commandSetTotemMode(sender,TotemManager.Mode.All),"Totem of Undying: All players need to hold it.");
Pair.pair((sender,arg)->commandReset(sender),"Gives every player full health and resets 'isFailed' to false. GameMode becomes Survival.")
addCommand("totem fraction",(sender,arg)->commandSetTotemMode(sender,TotemManager.Mode.Fraction),"Totem of Undying: At least fraction * player-count need to hold it.");
);
addCommand("totem disabled",(sender,arg)->commandSetTotemMode(sender,TotemManager.Mode.Disabled),"Totem of Undying: Disabled");
commands.put(
addCommand("totem setfraction",this::commandSetTotemFraction,"Totem of Undying: Set amount for mode: fraction.");
Arrays.asList("add"),
addCommand("totem getfraction",(sender,arg)->commandGetTotemFraction(sender),"Totem of Undying: Get amount for mode: fraction.");
Pair.pair((sender,name)->commandActivePlayer(sender,name,true),"Adds a player to the Plugin.")
addCommand("totem get",(sender,arg)->commandGetTotemMode(sender),"Totem of Undying: Get current mode.");