Skip to content

Commit

Permalink
fix: /reload wiping player information
Browse files Browse the repository at this point in the history
  • Loading branch information
Thatsmusic99 committed Aug 20, 2023
1 parent 4e7cfa0 commit e082f07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/github/thatsmusic99/headsplus/HeadsPlus.java
@@ -1,5 +1,6 @@
package io.github.thatsmusic99.headsplus;

import io.github.thatsmusic99.headsplus.api.HPPlayer;
import io.github.thatsmusic99.headsplus.api.events.*;
import io.github.thatsmusic99.headsplus.commands.*;
import io.github.thatsmusic99.headsplus.commands.maincommand.*;
Expand Down Expand Up @@ -134,6 +135,7 @@ public void onEnable() {
checkDates();
});
Bukkit.getScheduler().runTaskLater(this, this::checkForMutuals, 20);
Bukkit.getScheduler().runTaskAsynchronously(this, HPPlayer::reload);

getServer().getConsoleSender().sendMessage(MessagesManager.get().getString("startup.plugin-enabled"));
for (String str : Arrays.asList(
Expand Down

0 comments on commit e082f07

Please sign in to comment.