Trace Refactor #233
@ -481,6 +481,8 @@ TRACE_RECORD=§aon
|
|||||||
TRACE_HAS_TRACES=§ehas Traces
|
TRACE_HAS_TRACES=§ehas Traces
|
||||||
TRACE_IDLE_AUTO=§eauto
|
TRACE_IDLE_AUTO=§eauto
|
||||||
TRACE_MESSAGE_START = §aTNT-Tracer started
|
TRACE_MESSAGE_START = §aTNT-Tracer started
|
||||||
|
TRACE_MESSAGE_AUTO_START=§eAuto TNT-Tracer started
|
||||||
|
TRACE_MESSAGE_AUTO_STOP=§cAuto TNT-Tracer stopped
|
||||||
TRACE_MESSAGE_STOP = §cTNT-Tracer stopped
|
TRACE_MESSAGE_STOP = §cTNT-Tracer stopped
|
||||||
TRACE_MESSAGE_CLEAR=§cAll TNT-positions deleted
|
TRACE_MESSAGE_CLEAR=§cAll TNT-positions deleted
|
||||||
TRACE_MESSAGE_DELETE=§cTrace TNT-positions deleted
|
TRACE_MESSAGE_DELETE=§cTrace TNT-positions deleted
|
||||||
@ -492,6 +494,9 @@ TRACE_MESSAGE_SHOW_FROM_TO=§aAll TNT-positions shown from {0} to {1}
|
|||||||
TRACE_MESSAGE_SHOW_TO_SMALLER = §cTo must be bigger then from
|
TRACE_MESSAGE_SHOW_TO_SMALLER = §cTo must be bigger then from
|
||||||
TRACE_MESSAGE_SHARE=§e{0} shared his trace show state.
|
TRACE_MESSAGE_SHARE=§e{0} shared his trace show state.
|
||||||
TRACE_MESSAGE_SHARE_HOVER=§eClick to view
|
TRACE_MESSAGE_SHARE_HOVER=§eClick to view
|
||||||
|
TRACE_MESSAGE_FOLLOW=§aYou are now following {0} Trace show state
|
||||||
|
TRACE_MESSAGE_FOLLOW_SELF=§cYou cannot follow yourself!
|
||||||
|
TRACE_MESSAGE_UNFOLLOW=§eYou are no longer following a Trace show state
|
||||||
|
|
||||||
TRACE_COMMAND_HELP_START = §8/§etrace start §8- §7Starts recording of all TNT-positions
|
TRACE_COMMAND_HELP_START = §8/§etrace start §8- §7Starts recording of all TNT-positions
|
||||||
TRACE_COMMAND_HELP_STOP = §8/§etrace stop §8- §7Stops the TNT-Tracer
|
TRACE_COMMAND_HELP_STOP = §8/§etrace stop §8- §7Stops the TNT-Tracer
|
||||||
|
@ -448,33 +448,26 @@ TPSLIMIT_FROZEN = §eTPS eingefroren.
|
|||||||
# Trace
|
# Trace
|
||||||
TRACE_RECORD=§aan
|
TRACE_RECORD=§aan
|
||||||
TRACE_HAS_TRACES=§ehat Traces
|
TRACE_HAS_TRACES=§ehat Traces
|
||||||
TRACE_MESSAGE_AUTO_IDLE_IGNITE = §aAuto-Tracer ignite gestartet
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_INVALID = §cAuto delete kann aktuell nicht genutzt werden
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_ALWAYS = §7Der letzte Schuss wird §eimmer§7 gelöscht
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_NEVER = §7Der letzte Schuss wird §enie§7 gelöscht
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_NO_BUILD_DESTROY = §7Der letzte Schuss wird gelöscht, wenn §ekein§7 Block aus dem §eBaubereich§7 zerstört wurde
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_BUILD_DESTROY = §7Der letzte Schuss wird gelöscht, wenn §eein§7 Block aus dem §eBaubereich§7 zerstört wurde
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_NO_TESTBLOCK_DESTROY = §7Der letzte Schuss wird gelöscht, wenn §ekein§7 Block aus dem §eTestblock§7 zerstört wurde
|
|
||||||
TRACE_MESSAGE_AUTO_DELETE_TESTBLOCK_DESTROY = §7Der letzte Schuss wird gelöscht, wenn §eein§7 Block aus dem §eTestblock§7 zerstört wurde
|
|
||||||
TRACE_MESSAGE_START = §aTNT-Tracer gestartet
|
TRACE_MESSAGE_START = §aTNT-Tracer gestartet
|
||||||
TRACE_MESSAGE_SINGLE = §aSingle-Tracer gestartet
|
TRACE_MESSAGE_AUTO_START=§eAuto TNT-Tracer gestartet
|
||||||
|
TRACE_MESSAGE_AUTO_STOP=§cAuto TNT-Tracer gestoppt
|
||||||
TRACE_MESSAGE_STOP = §cTNT-Tracer gestoppt
|
TRACE_MESSAGE_STOP = §cTNT-Tracer gestoppt
|
||||||
TRACE_MESSAGE_CLEAR=§cAlle TNT-Positionen gelöscht
|
TRACE_MESSAGE_CLEAR=§cAlle TNT-Positionen gelöscht
|
||||||
TRACE_MESSAGE_SHOW = §aAlle TNT-Positionen angezeigt
|
TRACE_MESSAGE_SHOW = §aAlle TNT-Positionen angezeigt
|
||||||
TRACE_MESSAGE_HIDE = §cAlle TNT-Positionen ausgeblendet
|
TRACE_MESSAGE_HIDE = §cAlle TNT-Positionen ausgeblendet
|
||||||
TRACE_MESSAGE_DISALLOWED = §cDu darfst hier nicht den TNT-Tracer nutzen
|
|
||||||
TRACE_MESSAGE_SHOW_AT=§aTNT-positions angezeigt bei {0}
|
TRACE_MESSAGE_SHOW_AT=§aTNT-positions angezeigt bei {0}
|
||||||
TRACE_MESSAGE_SHOW_FROM=§aAll TNT-positions angezeigt von {0}
|
TRACE_MESSAGE_SHOW_FROM=§aAll TNT-positions angezeigt von {0}
|
||||||
TRACE_MESSAGE_SHOW_FROM_TO=§aAll TNT-positions angezeigt von {0} bis {1}
|
TRACE_MESSAGE_SHOW_FROM_TO=§aAll TNT-positions angezeigt von {0} bis {1}
|
||||||
TRACE_MESSAGE_SHOW_TO_SMALLER = §cBis muss größer als von sein
|
TRACE_MESSAGE_SHOW_TO_SMALLER = §cBis muss größer als von sein
|
||||||
TRACE_MESSAGE_SHARE=§e{0} teilte seinen Trace-Show-Status.
|
TRACE_MESSAGE_SHARE=§e{0} teilte seinen Trace-Show-Status.
|
||||||
TRACE_MESSAGE_SHARE_HOVER=§eZum Ansehen klicken.
|
TRACE_MESSAGE_SHARE_HOVER=§eZum Ansehen klicken.
|
||||||
|
TRACE_MESSAGE_FOLLOW=§aSie folgen nun {0} Trace show state
|
||||||
|
TRACE_MESSAGE_FOLLOW_SELF=§cSie können sich selbst nicht folgen!
|
||||||
|
TRACE_MESSAGE_UNFOLLOW=§eSie folgen nicht mehr dem Status einer Trace-Show
|
||||||
|
|
||||||
TRACE_COMMAND_HELP_START = §8/§etrace start §8- §7Startet die Aufnahme aller TNT-Positionen
|
TRACE_COMMAND_HELP_START = §8/§etrace start §8- §7Startet die Aufnahme aller TNT-Positionen
|
||||||
TRACE_COMMAND_HELP_SINGLE = §8/§etrace single §8- §7Startet eine einzelne Aufnahme aller TNT-Positionen
|
|
||||||
TRACE_COMMAND_HELP_STOP = §8/§etrace stop §8- §7Stoppt den TNT-Tracer
|
TRACE_COMMAND_HELP_STOP = §8/§etrace stop §8- §7Stoppt den TNT-Tracer
|
||||||
TRACE_COMMAND_HELP_AUTO = §8/§etrace toggleauto §8- §7Automatischer Aufnahmenstart
|
TRACE_COMMAND_HELP_AUTO = §8/§etrace toggleauto §8- §7Automatischer Aufnahmenstart
|
||||||
TRACE_COMMAND_HELP_AUTO_REMOVE = §8/§etrace autoremove §8<§eParameter§8> §8- §7Löscht den letzten Trace automatisch
|
|
||||||
TRACE_COMMAND_HELP_SHOW = §8/§etrace show §8<§eParameter§8> - §7Zeigt alle TNT-Positionen
|
TRACE_COMMAND_HELP_SHOW = §8/§etrace show §8<§eParameter§8> - §7Zeigt alle TNT-Positionen
|
||||||
TRACE_COMMAND_HELP_SHOW_AT = §8/§etrace show §8(§etime§8|§7fuse§8) §7at §8<§eTIME§8> - §7Zeigt alle TNT-Positionen bei §8<§eTIME§8> an
|
TRACE_COMMAND_HELP_SHOW_AT = §8/§etrace show §8(§etime§8|§7fuse§8) §7at §8<§eTIME§8> - §7Zeigt alle TNT-Positionen bei §8<§eTIME§8> an
|
||||||
TRACE_COMMAND_HELP_SHOW_FROM = §8/§etrace show §8(§etime§8|§7fuse§8) §7from §8<§eFROM§8> - §7Zeigt alle TNT-Positionen von §8<§eFROM§8>
|
TRACE_COMMAND_HELP_SHOW_FROM = §8/§etrace show §8(§etime§8|§7fuse§8) §7from §8<§eFROM§8> - §7Zeigt alle TNT-Positionen von §8<§eFROM§8>
|
||||||
|
@ -63,8 +63,11 @@ public class TraceCommand extends SWCommand {
|
|||||||
@Register(value = "auto", description = "TRACE_COMMAND_HELP_AUTO")
|
@Register(value = "auto", description = "TRACE_COMMAND_HELP_AUTO")
|
||||||
public void auto(@Validator Player player) {
|
public void auto(@Validator Player player) {
|
||||||
Region region = Region.getRegion(player.getLocation());
|
Region region = Region.getRegion(player.getLocation());
|
||||||
TraceRecorder.instance.toggleAutoTrace(region);
|
if (TraceRecorder.instance.toggleAutoTrace(region)) {
|
||||||
// TODO: Add Auto toggle Message!
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_AUTO_START", player);
|
||||||
|
} else {
|
||||||
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_AUTO_STOP", player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register(value = "show", description = "TRACE_COMMAND_HELP_SHOW")
|
@Register(value = "show", description = "TRACE_COMMAND_HELP_SHOW")
|
||||||
@ -157,17 +160,17 @@ public class TraceCommand extends SWCommand {
|
|||||||
@Register(value = "follow", description = "TRACE_COMMAND_HELP_FOLLOW")
|
@Register(value = "follow", description = "TRACE_COMMAND_HELP_FOLLOW")
|
||||||
public void follow(@Validator Player player, Player toFollow) {
|
public void follow(@Validator Player player, Player toFollow) {
|
||||||
if (player == toFollow) {
|
if (player == toFollow) {
|
||||||
// TODO: Implement message
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_FOLLOW_SELF", player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
TraceManager.instance.follow(player, toFollow);
|
TraceManager.instance.follow(player, toFollow);
|
||||||
// TODO: Implement message
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_FOLLOW", player, toFollow.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register(value = "unfollow", description = "TRACE_COMMAND_HELP_UNFOLLOW")
|
@Register(value = "unfollow", description = "TRACE_COMMAND_HELP_UNFOLLOW")
|
||||||
public void unfollow(@Validator Player player) {
|
public void unfollow(@Validator Player player) {
|
||||||
TraceManager.instance.unfollow(player);
|
TraceManager.instance.unfollow(player);
|
||||||
// TODO: Implement message
|
BauSystem.MESSAGE.send("TRACE_MESSAGE_UNFOLLOW", player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ClassMapper(value = Trace.class, local = true)
|
@ClassMapper(value = Trace.class, local = true)
|
||||||
|
@ -79,11 +79,12 @@ public class TraceRecorder implements Listener {
|
|||||||
*
|
*
|
||||||
* @param region
|
* @param region
|
||||||
*/
|
*/
|
||||||
public void toggleAutoTrace(Region region) {
|
public boolean toggleAutoTrace(Region region) {
|
||||||
if (autoTraceRegions.contains(region)) {
|
if (!autoTraceRegions.remove(region)) {
|
||||||
autoTraceRegions.remove(region);
|
|
||||||
} else {
|
|
||||||
autoTraceRegions.add(region);
|
autoTraceRegions.add(region);
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren