Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreeam-qwq committed Sep 5, 2023
1 parent d61dc5e commit 4fb6474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/surf/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onEnable() {
// register event
this.registerEvents();
if (ConfigCache.AntiillegalDeleteStackedTotem) {
Bukkit.getServer().getGlobalRegionScheduler().runAtFixedRate(this, scheduledTask -> Bukkit.getWorlds().forEach(b -> b.getPlayers().forEach(e -> e.getInventory().forEach(this::revert))), 0L, 20L);
Bukkit.getServer().getScheduler().runTaskTimer(this, () -> Bukkit.getWorlds().forEach(b -> b.getPlayers().forEach(e -> e.getInventory().forEach(this::revert))), 0L, 20L);
}
//Alert system events
PaperLib.suggestPaper(this);
Expand Down

0 comments on commit 4fb6474

Please sign in to comment.