Skip to content

Commit

Permalink
Added more log entry types
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 25, 2024
1 parent 48a9053 commit fe08e37
Showing 1 changed file with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion src/main/java/world/bentobox/bentobox/api/logs/LogEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,74 @@ public class LogEntry {
@Expose
private final Map<String, String> data;

/**
* This is a log enum. If you are a developer and need more make a PR. Or use the string one.
*/
public enum LogType {
REMOVE, ADD, UNREGISTER, BAN, UNOWNED, SPAWN, UNBAN, JOINED, NEWOWNER, TRUSTED, UNKNOWN
/**
* Something removed
*/
REMOVE,
/**
* Something added
*/
ADD,
/**
* Island unregistered
*/
UNREGISTER,
/**
* Player banned
*/
BAN,
/**
* Island became unowned
*/
UNOWNED,
/**
* Island became spawn
*/
SPAWN,
/**
* Player unbanned
*/
UNBAN,
/**
* Player joined
*/
JOINED,
/**
* New owner made
*/
NEWOWNER,
/**
* Player trusted
*/
TRUSTED,
/**
* Player cooped
*/
COOP,
/**
* Unknown reason
*/
UNKNOWN,
/**
* Island reset or a reset of some kind
*/
RESET,
/**
* New thing
*/
NEW,
/**
* Something duplicated
*/
DUPLICATE,
/**
* General info
*/
INFO,
}

private LogEntry(@NonNull Builder builder) {
Expand Down

0 comments on commit fe08e37

Please sign in to comment.