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

@@ -133,7 +133,7 @@ public class FabricUser extends OnlineUser {
player.teleport(
server.getWorld(server.getWorldRegistryKeys().stream()
.filter(key -> key.getValue().equals(worldId)).findFirst()
.orElseThrow(() -> new TeleportationException(TeleportationException.Type.WORLD_NOT_FOUND))
.orElseThrow(() -> new TeleportationException(TeleportationException.Type.WORLD_NOT_FOUND, plugin))
),
location.getX(), location.getY(), location.getZ(),
location.getYaw(), location.getPitch()