Skip to content

Commit

Permalink
Added backwards compatibility for the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Nov 25, 2024
1 parent 8e3a6ab commit 48a9053
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/world/bentobox/bentobox/api/logs/LogEntry.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package world.bentobox.bentobox.api.logs;

import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;

import org.eclipse.jdt.annotation.NonNull;
Expand Down Expand Up @@ -61,6 +60,17 @@ public Builder(LogType type) {
this.data = new LinkedHashMap<>();
}

/**
* @param string
* @deprecated Use the enum version. If you need more enums, then add them to the code
*/
@Deprecated
public Builder(String string) {
this.timestamp = System.currentTimeMillis();
this.type = LogType.UNKNOWN;
this.data = new LinkedHashMap<>();
}

public Builder timestamp(long timestamp) {
this.timestamp = timestamp;
return this;
Expand Down

0 comments on commit 48a9053

Please sign in to comment.