cleanup
This commit is contained in:
@ -92,7 +92,6 @@ public class FightDetector extends Appliance {
|
||||
@Override
|
||||
protected @NotNull List<Listener> listeners() {
|
||||
return List.of(
|
||||
new FightOnDistanceListener(),
|
||||
new FightOnInteractionListener()
|
||||
);
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
package eu.mhsl.craftattack.spawn.varo.appliances.metaGameplay.fightDetector;
|
||||
|
||||
import eu.mhsl.craftattack.spawn.core.appliance.ApplianceListener;
|
||||
|
||||
class FightOnDistanceListener extends ApplianceListener<FightDetector> {
|
||||
//TODO implementation
|
||||
}
|
@ -79,7 +79,9 @@ public class VaroTeam {
|
||||
if(isInFight) {
|
||||
Main.logger().info(String.format("Cannot kick Team %s because it is in a fight!", this.name));
|
||||
this.getOnlinePlayers()
|
||||
.forEach(player -> player.sendMessage("Du befindest dich in einer Kampfhandlung oder unmittelbar"));
|
||||
.forEach(player -> player.sendActionBar(
|
||||
"Du befindest dich in einer Kampfhandlung oder in der Nähe eines gegnerischen Teams! Der Kick wird verzögert!"
|
||||
));
|
||||
Bukkit.getScheduler().runTaskLater(
|
||||
Main.instance(),
|
||||
this::timeOverKick,
|
||||
|
Reference in New Issue
Block a user