diff --git a/pom.xml b/pom.xml index d59424d..12abed1 100644 --- a/pom.xml +++ b/pom.xml @@ -15,7 +15,7 @@ com.artformgames usersuffix - 1.3.0 + 1.3.1 UserSuffix diff --git a/src/main/java/com/artformgames/plugin/usersuffix/command/UserSuffixCommands.java b/src/main/java/com/artformgames/plugin/usersuffix/command/UserSuffixCommands.java index 09e86fb..c82f731 100644 --- a/src/main/java/com/artformgames/plugin/usersuffix/command/UserSuffixCommands.java +++ b/src/main/java/com/artformgames/plugin/usersuffix/command/UserSuffixCommands.java @@ -25,8 +25,7 @@ public class UserSuffixCommands { @Execute(name = "clear") void clearSuffix(@Context Player player) { SuffixAccount account = ArtCore.getHandler(player, SuffixAccount.class); - account.setContent(null); - account.setColor(null); + account.setSuffix(null, null); PluginMessages.CLEARED.send(player); } diff --git a/src/main/java/com/artformgames/plugin/usersuffix/user/SuffixAccount.java b/src/main/java/com/artformgames/plugin/usersuffix/user/SuffixAccount.java index 154d928..12f72fb 100644 --- a/src/main/java/com/artformgames/plugin/usersuffix/user/SuffixAccount.java +++ b/src/main/java/com/artformgames/plugin/usersuffix/user/SuffixAccount.java @@ -54,14 +54,6 @@ protected Optional getPlayer() { return content; } - public void setColor(@Nullable String color) { - this.color = color; - } - - public void setContent(@Nullable String content) { - this.content = content; - } - public @Nullable String getSuffix() { if (this.content == null) return null; return ColorParser.parse(PluginConfig.FORMAT.getNotNull()