Spigot Download https://www.spigotmc.org/resources/autototem.99443/
Automatically use totems of undying from your inventory without needing to hold them in your hand!
No configuration required, just drag and drop!
autototem.use - Enables AutoTotems for the player (Default true) autototem.credits - Access to /autototem command (Default true) autototem.* - All permissions enabled
Command to toggle AutoTotem on and off Configurable totem cooldowns
Want to extend the functionallity of AutoTotem? You can use the API !
Download => https://www.spigotmc.org/resources/autototem.99443/
Drop it into a package called libs (You can put it anywhere you want in your project just make sure to adjust the dependency to match!)
<dependency>
<groupId>xyz.blujay</groupId>
<artifactId>AutoTotem</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/libs/AutoTotem-1.0.jar</systemPath>
</dependency>
AutoTotemAPI autoTotemAPI = ((AutoTotem) Bukkit.getServer().getPluginManager().getPlugin("AutoTotem")).getAPI();
returns boolean: true if AutoTotem could activate for the given player.
returns Instant: when the player's cool down expires, and they can use a totem again.
function: Set a player's totem cool down X seconds into the future.