Skip to content

Instantly share code, notes, and snippets.

@zkingboos
Created September 28, 2020 18:48
Show Gist options
  • Save zkingboos/58c2bc15ac07c08a4782cf97036b4b23 to your computer and use it in GitHub Desktop.
Save zkingboos/58c2bc15ac07c08a4782cf97036b4b23 to your computer and use it in GitHub Desktop.
Delay in commands (Tip)
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