#I'm stupid and idk how to set a plugin variable as the current plugin

1 messages · Page 1 of 1 (latest)

sterile lintel
#

So I can't use "this" bc I'm in a static method (at least I think that's how it works, I haven't touched spigot in months and I'm trying to learn again) but I am using runTaskLater() so I need the plugin as a variable

#
        isCooldown.add(player.getUniqueId());
        Bukkit.getScheduler().runTaskLater(me.extremecounting.zombiestuff.ZombieStuff.getPlugin(""),()->{
            isCooldown.remove(player.getUniqueId());
        },firerate);
    }```
#

that's the code

compact maple