Created
September 28, 2020 18:48
-
-
Save zkingboos/58c2bc15ac07c08a4782cf97036b4b23 to your computer and use it in GitHub Desktop.
Delay in commands (Tip)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DelayCommandExecutor implements CommandExecutor { | |
private final List<String> delayPlayerRegistry = new ArrayList<>(); | |
@Override | |
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { | |
return true; | |
} | |
public String getPlayerDelayFromRegistry(Player player) { | |
return delayPlayerRegistry.get(player.getName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment