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