Fix Inception

Reset inception counter when a chat alias is used, since it won't come back through the command pre-process listener to reset the counter.
main
Etzelia 2018-10-26 18:39:06 +02:00
parent 1848569b0a
commit 44fa5eb4c2
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ public class CommandPreprocessListener implements Listener {
} else {
player.sendMessage(ChatColor.RED + usage(base, alias.getTo()));
}
loops.put(player.getUniqueId().toString(), 0); // Reset the inception counter for chat aliases before returning.
return true;
}
}