Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
7822bb9651
Commit
5447f37a6b
@ -94,6 +94,7 @@ public class FightTeam {
|
|||||||
team.setAllowFriendlyFire(false);
|
team.setAllowFriendlyFire(false);
|
||||||
|
|
||||||
new OneShotStateDependent(ArenaMode.Restartable, FightState.PreLeaderSetup, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::reset));
|
new OneShotStateDependent(ArenaMode.Restartable, FightState.PreLeaderSetup, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::reset));
|
||||||
|
new OneShotStateDependent(Config.replayserver(), FightState.PreLeaderSetup, () -> Bukkit.getScheduler().runTask(FightSystem.getPlugin(), this::reset));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPrefixAndName(String prefix, String name){
|
public void setPrefixAndName(String prefix, String name){
|
||||||
|
@ -41,6 +41,12 @@ public class OneShotStateDependent extends StateDependent{
|
|||||||
register();
|
register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public OneShotStateDependent(boolean active, Set<FightState> states, Runnable runnable) {
|
||||||
|
super(active, states);
|
||||||
|
this.runnable = runnable;
|
||||||
|
register();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void enable() {
|
public void enable() {
|
||||||
runnable.run();
|
runnable.run();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren