Skip to content

A minecraft plugin to automatically use a totem of undying from your inventory

Notifications You must be signed in to change notification settings

blu-jay/AutoTotem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoTotem

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!

Permissions

autototem.use - Enables AutoTotems for the player (Default true) autototem.credits - Access to /autototem command (Default true) autototem.* - All permissions enabled

PlannedFeatures

Command to toggle AutoTotem on and off Configurable totem cooldowns


API Reference

Want to extend the functionallity of AutoTotem? You can use the API !

Download or build the jar

Download => https://www.spigotmc.org/resources/autototem.99443/

Add the jar to your project

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!)

Add the dependency to pom.xml

<dependency>
    <groupId>xyz.blujay</groupId>
    <artifactId>AutoTotem</artifactId>
    <version>1.0</version>
    <scope>system</scope>
    <systemPath>${basedir}/libs/AutoTotem-1.0.jar</systemPath>
</dependency>

Get the API object:

AutoTotemAPI autoTotemAPI = ((AutoTotem) Bukkit.getServer().getPluginManager().getPlugin("AutoTotem")).getAPI();


API Methods

canUseTotem(Player player)

returns boolean: true if AutoTotem could activate for the given player.

getCoolDown(Player player)

returns Instant: when the player's cool down expires, and they can use a totem again.

setCoolDown(Player player, int coolDown))

function: Set a player's totem cool down X seconds into the future.

About

A minecraft plugin to automatically use a totem of undying from your inventory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages