fix prefix sub command and add clearing guild prefixes

fix some issues with hover events in prefixes
This commit is contained in:
Taah 2022-05-07 22:54:22 -07:00
parent f709e76dd5
commit 8bcf28f120
9 changed files with 129 additions and 40 deletions

View file

@ -19,6 +19,7 @@ import java.util.UUID;
@Entity("guilds")
public class Guild
{
private final UUID guildUuid;
private final String name;
private final UUID owner;
private final ZonedDateTime createdAt;
@ -34,6 +35,6 @@ public class Guild
public static Guild create(Player player, String guildName)
{
return new Guild(guildName, player.getUniqueId(), ZonedDateTime.now(ZoneId.of(Plex.get().config.getString("server.timezone"))));
return new Guild(UUID.randomUUID(), guildName, player.getUniqueId(), ZonedDateTime.now(ZoneId.of(Plex.get().config.getString("server.timezone"))));
}
}