mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
implement cansend
This commit is contained in:
@@ -576,6 +576,7 @@ hacks:
|
||||
material_blacklist: []
|
||||
unsafe_materials: [LAVA, WATER]
|
||||
ott_timeout: 1d
|
||||
canSend: false
|
||||
ToggleLamp:
|
||||
enabled: true
|
||||
cooldownTime: 100
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user