cleanup
This commit is contained in:
@ -92,7 +92,6 @@ public class FightDetector extends Appliance {
|
|||||||
@Override
|
@Override
|
||||||
protected @NotNull List<Listener> listeners() {
|
protected @NotNull List<Listener> listeners() {
|
||||||
return List.of(
|
return List.of(
|
||||||
new FightOnDistanceListener(),
|
|
||||||
new FightOnInteractionListener()
|
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) {
|
if(isInFight) {
|
||||||
Main.logger().info(String.format("Cannot kick Team %s because it is in a fight!", this.name));
|
Main.logger().info(String.format("Cannot kick Team %s because it is in a fight!", this.name));
|
||||||
this.getOnlinePlayers()
|
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(
|
Bukkit.getScheduler().runTaskLater(
|
||||||
Main.instance(),
|
Main.instance(),
|
||||||
this::timeOverKick,
|
this::timeOverKick,
|
||||||
|
Reference in New Issue
Block a user