DrugMeUp Plugin (1.12.2) – Bukkit, Spigot, Paper
340
views ❘
September 8, 2022
❘
DrugMeUp Plugin (1.12.2) uses static method API calls to access certain parts that may be useful in custom plugins.
API
The two main classes accessible with DrugMeUp are:
- DrugHandler
- getDrug(ItemStack) – return a Drug object via an ItemStack reference
- getDrug(Material, short) – return a Drug object via Material and Durability reference
- getDrug(String) – return a Drug object via name reference (NOTE: Colors need to be included, if any)
- getDrugs() – return a list of all Drug objects
- isDrug(ItemStack) – Check if the ItemStack is a Drug type
- isDrug(Material, short) – Check if the Material and durability combination is a drug type
- gatherDrugs() – Gather all drugs from config to #getDrugs() (returns the amount gathered)
- clearDrugs() – Clear the list of drugs (#getDrugs())
- PlayerHandler
- getDrunk() – return a list of player’s names that are currently drunk (scrambled text)
- getOnDrugs() – return a HashMap<String, Integer> of everyone on drugs. (<Players Names, Time until drug runs out>)
- getIsJump() – return a list of player’s names that are currently high jumping
- getNoPlace() – return a list of player’s names that are currently not allowed to place blocks (block drugs)
Commands
- /drugmeup reload – Reloads the DrugMeUp config
- /drugmeup <cleardrugs/cd/clear> <player> – Reloads the DrugMeUp config
Permissions
- drugs.* – Allows users to use all commands and features
- drugs.use – Allows users to do drugs
- drugs.reload – Allows users to do /drugmeup reload
- drugs.updates – If you have this perm, you can see when an update is available for DMU.
- drugs.cleardrugs – Allows /drugmeup cleardrugs command
Screenshots:
How to install:
- Download a plugin of your choice.
- Place the .jar and any other files in your plugins directory.
- Run the server and wait for it to fully load.
- Type stop in your Minecraft server console to bring the server to a clean stop.
- Run the server.
- All done! Your plugin should be installed and ready to be used.
DrugMeUp Plugin (1.12.2) Download Links
For Minecraft Bukkit 1.12
Click to rate this post!
[Total: 0 Average: 0]