TinyProtocol #51
@ -87,8 +87,7 @@ public class NoClipCommand extends SWCommand implements Listener {
|
||||
|
||||
BiFunction<Player, Object, Object> second = (player, o) -> {
|
||||
if (NOCLIPS.contains(player)) {
|
||||
if (LAST_TICKS.getOrDefault(player, -1L).equals(TPSUtils.currentTick.get())) return o;
|
||||
VersionedRunnable.call(new VersionedRunnable(() -> NoClipCommand_15.setGameModeInternal(player, GameMode.SPECTATOR), 15));
|
||||
VersionedRunnable.call(new VersionedRunnable(() -> NoClipCommand_15.setGameModeInternal(player, GameMode.CREATIVE), 15));
|
||||
LAST_TICKS.put(player, TPSUtils.currentTick.get());
|
||||
}
|
||||
return o;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren