Update JeffChestSortCommandExecutor.java

This commit is contained in:
JEFF 2019-04-29 00:58:25 +02:00 committed by GitHub
parent 4550ab4e62
commit 2452d16329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ public class JeffChestSortCommandExecutor implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] arg3) {
// This command toggles automatic chest sorting for the player that runs the command
if (arg1.getName().equalsIgnoreCase("chestsort")) {
if (!(sender instanceof Player)) {