mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-02 13:31:43 +01:00
Text micro-optimisation
This commit is contained in:
parent
79fc7c426b
commit
2ea94aedc9
@ -145,8 +145,7 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
|
|||||||
}
|
}
|
||||||
cooldowns.remove(player.getUniqueId());
|
cooldowns.remove(player.getUniqueId());
|
||||||
}
|
}
|
||||||
if (!sendText(player))
|
sendText(player);
|
||||||
return;
|
|
||||||
// Add a cooldown if the text was successfully sent
|
// Add a cooldown if the text was successfully sent
|
||||||
int secondsDelta = delay != -1 ? delay
|
int secondsDelta = delay != -1 ? delay
|
||||||
: RANDOM.nextInt(Setting.TALK_CLOSE_MAXIMUM_COOLDOWN.asInt())
|
: RANDOM.nextInt(Setting.TALK_CLOSE_MAXIMUM_COOLDOWN.asInt())
|
||||||
|
Loading…
Reference in New Issue
Block a user