Fix TPS Bugs with ScriptListener
Dieser Commit ist enthalten in:
Ursprung
b1ada402e3
Commit
bde263de50
@ -43,9 +43,7 @@ public class ScriptListener implements Listener {
|
|||||||
private Set<Player> playerSet = new HashSet<>();
|
private Set<Player> playerSet = new HashSet<>();
|
||||||
|
|
||||||
public ScriptListener() {
|
public ScriptListener() {
|
||||||
Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), () -> {
|
Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), playerSet::clear, 5, 5);
|
||||||
playerSet.clear();
|
|
||||||
}, 1, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren