Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
8ebad6c18e
Commit
e71931e757
@ -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