Added ORIENTATION_REGION and ALL LogModes, which log orientation+region and position+orientation+region respectively.

Dieser Commit ist enthalten in:
TomyLobo 2011-08-09 01:13:57 +02:00
Ursprung e320d34b32
Commit d30cad6340
2 geänderte Dateien mit 14 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -32,11 +32,13 @@ public @interface Logging {
public enum LogMode { public enum LogMode {
POSITION, // Player position POSITION, // Player position
REGION, // Region selection REGION, // Region selection
PLACEMENT // Either the player position or pos1, depending on the placeAtPos1 flag ORIENTATION_REGION, // player orientation and Region selection
PLACEMENT, // Either the player position or pos1, depending on the placeAtPos1 flag
ALL // Log all information available
} }
/** /**
* Log mode. Can be either POSITION, REGION or PLACEMENT. * Log mode. Can be either POSITION, REGION, ORIENTATION_REGION, PLACEMENT or ALL.
*/ */
LogMode value(); LogMode value();
} }

Datei anzeigen

@ -141,6 +141,14 @@ public class WorldEdit {
msg += " - Position: "+position; msg += " - Position: "+position;
break; break;
case ALL:
msg += " - Position: "+position;
/* FALL-THROUGH */
case ORIENTATION_REGION:
msg += " - Orientation: "+player.getCardinalDirection().name();
/* FALL-THROUGH */
case REGION: case REGION:
try { try {
msg += " - Region: "+session.getSelection(player.getWorld()); msg += " - Region: "+session.getSelection(player.getWorld());