diff --git a/gradle.properties b/gradle.properties index d2a2f3e..e813878 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true # Plugin -plugin_version=0.1.1 +plugin_version=0.1.2 plugin_group=xyz.twokilohertz plugin_base_name=playerlistdeathcount diff --git a/src/main/java/xyz/twokilohertz/playerlistdeathcount/PlayerListDeathCount.java b/src/main/java/xyz/twokilohertz/playerlistdeathcount/PlayerListDeathCount.java index 609ef26..d27dbe8 100644 --- a/src/main/java/xyz/twokilohertz/playerlistdeathcount/PlayerListDeathCount.java +++ b/src/main/java/xyz/twokilohertz/playerlistdeathcount/PlayerListDeathCount.java @@ -1,5 +1,6 @@ package xyz.twokilohertz.playerlistdeathcount; +import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.Listener; import org.bukkit.plugin.PluginManager; @@ -19,5 +20,9 @@ public class PlayerListDeathCount extends JavaPlugin { @Override public void onDisable() { HandlerList.unregisterAll(playerEventListener); + + for (Player player : getServer().getOnlinePlayers()) { + player.setPlayerListName(null); + } } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 9b689b2..17c7926 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: PlayerListDeathCount -version: 0.1.1 +version: 0.1.2 description: Show the number of deaths players have in the server online player list author: twokilohertz website: https://git.2khz.xyz/adam/PlayerListDeathCount