SteamWar/BauSystem
Archiviert
13
0

Add RedstoneListener messages

Dieser Commit ist enthalten in:
yoyosource 2021-03-07 12:36:19 +01:00
Ursprung ab374ea7dd
Commit 3e184dfefb

Datei anzeigen

@ -66,7 +66,8 @@ public class RedstoneListener implements Listener {
private void activate(Location location) {
if (loc1 != null && loc1.equals(location)) {
if (activated != null && !activated.equals(location)) {
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick) + " §8(§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick));
player.sendMessage(BauSystem.PREFIX + "Reihenfolge§8: (§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
activated = null;
return;
}
@ -74,7 +75,8 @@ public class RedstoneListener implements Listener {
tick = currentTick;
} else if (loc2 != null && loc2.equals(location)) {
if (activated != null && !activated.equals(location)) {
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick) + " §8(§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
player.sendMessage(BauSystem.PREFIX + "Aktivierungsdifferenz§8: §e" + (currentTick - tick));
player.sendMessage(BauSystem.PREFIX + "Reihenfolge§8: (§7" + locationToString(activated) + " §8->§7 " + locationToString(location) + "§8)");
activated = null;
return;
}