Simplify AFKStopperListener
Dieser Commit ist enthalten in:
Ursprung
c1041a8f4e
Commit
861fcde290
@ -37,7 +37,6 @@ public class AFKStopperListener implements Listener {
|
|||||||
|
|
||||||
public AFKStopperListener() {
|
public AFKStopperListener() {
|
||||||
minutesAfk = 0;
|
minutesAfk = 0;
|
||||||
Bukkit.getPluginManager().registerEvents(this, BauSystem.getInstance());
|
|
||||||
Bukkit.getScheduler().runTaskTimer(BauSystem.getInstance(), () -> {
|
Bukkit.getScheduler().runTaskTimer(BauSystem.getInstance(), () -> {
|
||||||
switch (minutesAfk) {
|
switch (minutesAfk) {
|
||||||
case 5:
|
case 5:
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren