Remove metadata on quit, fixes #622
This commit is contained in:
parent
a032155f5b
commit
1c97612c9f
@ -551,6 +551,10 @@ public class DisguiseListener implements Listener {
|
|||||||
public void onQuit(PlayerQuitEvent event) {
|
public void onQuit(PlayerQuitEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
|
for (String meta : new String[]{"LastDisguise", "LD-LastAttacked", "forge_mods", "LibsRabbitHop", "ld_loggedin"}) {
|
||||||
|
player.removeMetadata(meta, LibsDisguises.getInstance());
|
||||||
|
}
|
||||||
|
|
||||||
// Removed as its not compatible with scoreboard teams
|
// Removed as its not compatible with scoreboard teams
|
||||||
/*if (player.hasPermission("libsdisguises.seethrough")) {
|
/*if (player.hasPermission("libsdisguises.seethrough")) {
|
||||||
for (Set<TargetedDisguise> disguises : DisguiseUtilities.getDisguises().values()) {
|
for (Set<TargetedDisguise> disguises : DisguiseUtilities.getDisguises().values()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user