#I'm stupid and idk how to set a plugin variable as the current plugin
1 messages · Page 1 of 1 (latest)
isCooldown.add(player.getUniqueId());
Bukkit.getScheduler().runTaskLater(me.extremecounting.zombiestuff.ZombieStuff.getPlugin(""),()->{
isCooldown.remove(player.getUniqueId());
},firerate);
}```
that's the code
either with DI (pass a reference to the plugin to the cooldown method) or you need some sort of static getter in your main plugin class to get its instance as there will only ever be 1 instance of it at a time