Fixed Autloader #96
@ -171,7 +171,7 @@ public class AutoLoader extends IAutoLoader implements Listener {
|
||||
detoloader = AutoLoader_12.onPlayerInteractLoader(event);
|
||||
|
||||
}
|
||||
if(detoloader == null) return;
|
||||
if(detoloader == null || detoloader.getActivation() < 0) return;
|
||||
if(detoloader.useActive)
|
||||
new IAutoLoader.RedstoneActivation(this, event.getClickedBlock().getLocation()
|
||||
, detoloader.getActivation() == 0 ? getLastActivation() : detoloader.getActivation()
|
||||
|
@ -76,7 +76,6 @@ public class Detonator implements Listener {
|
||||
}
|
||||
|
||||
public void execute() {
|
||||
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("§a" + locs.size() + " Punkt(e) ausgelöst!"));
|
||||
for (Detoloader.DetonatorActivation activation: getLocations()) {
|
||||
|
||||
Boolean powered;
|
||||
@ -100,6 +99,7 @@ public class Detonator implements Listener {
|
||||
AutoLoader_12.setRedstone(activation.location, false), activation.activation);
|
||||
}
|
||||
}
|
||||
player.spigot().sendMessage(ChatMessageType.ACTION_BAR, TextComponent.fromLegacyText("§a" + locs.size() + " Punkt" + (locs.size() > 1 ? "e" : "") + " ausgelöst!"));
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
@ -157,7 +157,7 @@ public class Detonator implements Listener {
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
@EventHandler
|
||||
public void onPlayerQuit(PlayerQuitEvent event) {
|
||||
deleteDetonator(event.getPlayer());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren