mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 08:08:34 +00:00
feat: Reduce any spam caused by exceptions thrown when writing history (#1976)
- Closes #1960
This commit is contained in:
@ -91,6 +91,7 @@ public class FaweException extends RuntimeException {
|
||||
PLAYER_ONLY,
|
||||
ACTOR_REQUIRED,
|
||||
CLIPBOARD,
|
||||
HISTORY,
|
||||
OTHER
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,15 @@
|
||||
package com.fastasyncworldedit.core.internal.exception;
|
||||
|
||||
import com.sk89q.worldedit.util.formatting.text.Component;
|
||||
import com.sk89q.worldedit.util.formatting.text.TextComponent;
|
||||
|
||||
public class FaweSmallEditUnsupportedException extends FaweException {
|
||||
|
||||
private static final Component message = TextComponent.of(
|
||||
"y cannot be outside range 0-255 for small-edits=true. History will NOT work on edits outside this range.");
|
||||
|
||||
public FaweSmallEditUnsupportedException() {
|
||||
super(message, Type.HISTORY);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user