Add ability to define cooldowns for actions (#437)

This commit is contained in:
William authored and GitHub committed 2023-06-16 17:39:54 +01:00
1 parent fb052340c0
commit fc8d3b0098
52 files changed
+1140 -619

No files matched your search

@@ -94,11 +94,11 @@ public class TpCommand extends Command implements TabProvider {
}
builder.toTeleport().execute();
} catch (TeleportationException e) {
e.displayMessage(executor, plugin, args);
e.displayMessage(executor, args);
return;
}
// Display teleport completion message
// Display a teleport completion message
final String teleporterName = teleportable instanceof OnlineUser user
? user.getUsername() : ((Username) teleportable).name();
if (target instanceof Position position) {