Skip to content

Commit bf8ca7d

Browse files
committed
Utilize Cooldown.create() instead
1 parent f4e5739 commit bf8ca7d

File tree

1 file changed

+1
-31
lines changed
  • common/src/main/java/com/artillexstudios/axvanish/users

1 file changed

+1
-31
lines changed

common/src/main/java/com/artillexstudios/axvanish/users/User.java

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -17,40 +17,10 @@
1717
import net.kyori.adventure.text.Component;
1818
import org.bukkit.OfflinePlayer;
1919
import org.bukkit.entity.Player;
20-
import org.jetbrains.annotations.NotNull;
21-
import java.util.Iterator;
2220

2321
public final class User implements com.artillexstudios.axvanish.api.users.User {
2422

25-
private static final Cooldown<User> cancelCooldown = new Cooldown<>() {
26-
@NotNull
27-
@Override
28-
public Iterator<User> iterator() {
29-
return null;
30-
}
31-
32-
@Override
33-
public void addCooldown(User key, long time) {
34-
}
35-
36-
@Override
37-
public long getRemaining(User key) {
38-
return 0;
39-
}
40-
41-
@Override
42-
public int size() {
43-
return 0;
44-
}
45-
46-
@Override
47-
public void remove(User key) {
48-
}
49-
50-
@Override
51-
public void clear() {
52-
}
53-
};
23+
private static final Cooldown<User> cancelCooldown = Cooldown.create();
5424

5525
private final OfflinePlayer offlinePlayer;
5626
private Group group;

0 commit comments

Comments
 (0)