Ursprung
525804016e
Commit
84fa4e8dd0
@ -25,6 +25,7 @@ import de.steamwar.fightsystem.Config;
|
||||
import de.steamwar.fightsystem.FightSystem;
|
||||
import de.steamwar.fightsystem.IFightSystem;
|
||||
import de.steamwar.fightsystem.kit.KitManager;
|
||||
import de.steamwar.fightsystem.listener.PersonalKitCreator;
|
||||
import de.steamwar.fightsystem.states.FightState;
|
||||
import de.steamwar.fightsystem.utils.*;
|
||||
import de.steamwar.fightsystem.winconditions.RankedPlayerLeftWincondition;
|
||||
@ -222,6 +223,9 @@ public class FightTeam implements IFightTeam{
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!PersonalKitCreator.notInKitCreator(leader.getPlayer()))
|
||||
leader.getPlayer().closeInventory();
|
||||
|
||||
this.leader = leader;
|
||||
if(ready)
|
||||
setReady(false);
|
||||
|
@ -78,7 +78,7 @@ public class PersonalKitCreator extends BasicListener {
|
||||
player.setGameMode(GameMode.CREATIVE);
|
||||
}
|
||||
|
||||
static boolean notInKitCreator(HumanEntity player){
|
||||
public static boolean notInKitCreator(HumanEntity player){
|
||||
return !openKitCreators.containsKey(player);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren