implement cansend

This commit is contained in:
okx-code
2026-06-09 02:26:31 +01:00
parent e733049609
commit ce41e7c8f5
2 changed files with 5 additions and 0 deletions

View File

@@ -576,6 +576,7 @@ hacks:
material_blacklist: []
unsafe_materials: [LAVA, WATER]
ott_timeout: 1d
canSend: false
ToggleLamp:
enabled: true
cooldownTime: 100

View File

@@ -422,6 +422,10 @@ public final class OneTimeTeleport extends SimpleHack<OneTimeTeleportConfig> imp
sender.sendMessage(Component.text("Could not find player " + targetPlayerName + "!", NamedTextColor.RED));
return;
}
if (!config().isCanSend()) {
sender.sendMessage(Component.text("You cannot OTT to another server!", NamedTextColor.RED));
return;
}
if (config().isLimitingToSameWorld()) {
sender.sendMessage(Component.text("You cannot OTT to another server!", NamedTextColor.RED));
return;