Skip to content

Commit

Permalink
tick comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed May 16, 2024
1 parent 03d91f1 commit 068018b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/cloudanarchy/queueplugin/QueuePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public final class QueuePlugin extends JavaPlugin implements Listener {
public void onEnable() {
location = new Location(getServer().getWorlds().get(0), 0, 140, 0);

getServer().setDefaultGameMode(GameMode.SPECTATOR);
getServer().setSpawnRadius(32);
getServer().getServerTickManager().setTickRate(1);
getServer().getPluginManager().registerEvents(this, this);
EventCanceler eventCanceler = new EventCanceler(this);
getServer().getPluginManager().registerEvents(eventCanceler, this);
ProtocolLibrary.getProtocolManager().addPacketListener(eventCanceler);

// tick once per second
getServer().getServerTickManager().setTickRate(1);
// run once per tick
getServer().getScheduler().runTaskTimer(this, () -> {
for (Player player : getServer().getOnlinePlayers()) {
// vanish
Expand Down

0 comments on commit 068018b

Please sign in to comment.