Skip to content

Commit

Permalink
fix(save): Fixed save errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Mar 5, 2024
1 parent c365d37 commit 167a86d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</properties>
<groupId>com.artformgames</groupId>
<artifactId>usersuffix</artifactId>
<version>1.3.0</version>
<version>1.3.1</version>

<name>UserSuffix</name>
<description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ protected Optional<Player> 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()
Expand Down

0 comments on commit 167a86d

Please sign in to comment.