Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Added ORIENTATION_REGION and ALL LogModes, which log orientation+region and position+orientation+region respectively.
Dieser Commit ist enthalten in:
Ursprung
e320d34b32
Commit
d30cad6340
@ -32,11 +32,13 @@ public @interface Logging {
|
||||
public enum LogMode {
|
||||
POSITION, // Player position
|
||||
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();
|
||||
}
|
||||
|
@ -136,11 +136,19 @@ public class WorldEdit {
|
||||
break;
|
||||
}
|
||||
/* FALL-THROUGH */
|
||||
|
||||
|
||||
case POSITION:
|
||||
msg += " - Position: "+position;
|
||||
break;
|
||||
|
||||
|
||||
case ALL:
|
||||
msg += " - Position: "+position;
|
||||
/* FALL-THROUGH */
|
||||
|
||||
case ORIENTATION_REGION:
|
||||
msg += " - Orientation: "+player.getCardinalDirection().name();
|
||||
/* FALL-THROUGH */
|
||||
|
||||
case REGION:
|
||||
try {
|
||||
msg += " - Region: "+session.getSelection(player.getWorld());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren