DrugMeUp v1.1.1

Details

  • Filename
    DrugMeUp.jar
  • Uploaded by
  • Uploaded
    Jul 4, 2017
  • Size
    41.96 KB
  • Downloads
    6,740
  • MD5
    d273e6d922ac9ae17bb741ff763bfe0a

Supported Bukkit Versions

  • 1.12
  • 1.11

Changelog

Version 1.1.1

Fixed:

  • Double-use issue when clicking a block to use the drug
  • Some weird error being thrown when puking your inventory up
  • A rare case where visible particles were not shown to everyone
Version 1.1

Fixed:

  • ParticleAPI errors being thrown around everywhere. This should be resolved now. I removed all NMS code that was handling particles and switched things up to the new CraftBukkit methods of spawning particles. Let me know if there are any issues with this.

Your config will save and regenerate (if you have one present), keep in mind that I have changed the names of the particles in the config to suit how CraftBukkit lists them. The new particle names are listed on the header of the config.

 

This was compiled to work with CraftBukkit 1.12, so I cannot guarantee that it will work with previous versions (should work fine with 1.11)

Version 1.0 - Leaving BETA

Changed:

  • Changed config option 'EnableEffectMessage' to 'EnableBroadcastMessage'
  • Broadcast option (true/false) now will send the message personally if set to false (rather than broadcast globally)
  • Colorized default drug names in config
  • Tweaked default drug effects & added LSD (PAPER)
  • Config now has notes all over it to help you in creating more drugs and / or modifying default ones

Added:

  • Organized classes to allow for static API calls (check Developers page)
  • For Developers: Added 3 Handler classes - DrugHandler (Get drugs, create drugs, manage drugs), PlayerHandler (methods for player effect management), & ConfigHandler (Used for doing config stuff, like checking for updates and such)
  • For Developers: Added 3 Custom Events - DrugTakenEventPreDrugTakenEvent (called before drug is taken, is cancellable) & DMUConfigReloadEvent (called when DMU config is reloaded and drugs are re-gathered)
  • Type: None - Allows drugs to be considered but does not allow them to be taken (good for servers where cops can see drugs on you, but you don't want them to take the drugs)
  • PARTICLES! - One of the biggest improvements to DrugMeUp since release, check the Config page for how to set up particles
  • /dmu - command now works just as /drugmeup
  • Drug cooldowns - controlled with a global config variable 'DrugCooldown' under options (Set this to 0 to not have a cooldown) - Thanks @stormjez

Fixed:

  • TON of code cleanup and reorganization (mainly for API calls)
  • Block placement while on drugs
  • Sober cooldown now works fully as expected, taking more and more drugs will reset the cooldown to the new maximum time
  • Few NPE (NullPointerExceptions) that were getting called from entity problems
Version 0.9.4.1

Changed:

  • Fixed a problem with damage values not being considered when taking drugs.
Version 0.9.4

Changed:

  • More code cleaning
  • Negative effects should now be applied properly
  • Errors are shown in the console if a drug isn't configured correctly
  • Fixed /drugmeup reload (Should be working 100% now)
  • Update checks are now working 100%, downloads are also working 100%
Version 0.9.3

Changed:

  • LOTS of code cleanup.
  • Cleaner Drug Gathering.
  • Cleaner methods for giving effects.
  • File size reduced from 50KB to 38KB.
  • Changed how config is loaded.
  • Updated Updater Library
  • Fixed POTION not being considered edible
  • Fixed /drugmeup reload (Might not work 100%, let me know)
Version 0.9.2

Changed:

  • Complete overhaul of drug effect system.
  • Bug fixes.
  • Configurations will now save in an old config folder when needed (This can be toggled)
  • File size reduced to 50KB from 68KB
Version 0.9.1

Changed:

  • Changed Item Ids to use Material names now instead of ID's
  • Updates are now handled directly through Bukkit using the Updater class. (Thanks @Gravity)

Added:

  • New text file to display the names of all items that can be used in DrugMeUp.
  • New 'NegChance' node to drugs with negative effects. It is out of 100.
  • New 'AutoUpdateDownload' feature in the config to automatically download new updates.
  • New 'Worlds' feature in the config to have Multi-World functionality. To use, simly type the world names out and separate with comma. Example:
Options:
  Worlds: world,world_the_end

BACKUP YOUR CONFIG FILE, IT WILL RESET THIS UPDATE.

Version 0.9

Changed:

  • Added more effects (Thanks uncleemil)
  • Small code changes
Version 0.8.3

Changed:

  • Fixed NPE caused from misplaced drug check.
  • Built against latest Bukkit build.
Version 0.8.2

Added:

  • Config variables 'MustSneak' and 'Message' to make drugs even more customizable.
  • /drugmeup cleardrugs [PlayerName] will clear all of the drug effects from the player.

Changed:

  • Built against latest Bukkit 1.6.1 development build.
  • Other small code fixes
  • Milk can now be used as a drinkable drug.

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.8.1

Added:

  • Configurable effect powers/time (Time is in seconds, Power is in.. well.. just play with the numbers and find out)

Updated:

  • Fixed config regeneration problem
  • Fixed effect 5 giving drunk effect

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.8

Added:

  • Edibles / Drinks can now be drugs (No extra configuration needed, just put the ID for the edible drug, You must be couching to use the drug still, but the difference is that you have to actually eat it)

Updated:

  • Major code rework (Thanks ProjectBarks)
  • Hopefully fixed the heart attack bug
  • Block placing timer (You can build when on drugs now)
  • Built for latest CraftBukkit Recommended Build

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.7

Added:

  • Configurable negative effects
  • Configurable smoke effect
  • GitHub Source Link (It's on the plugin overview page)

Removed:

  • CraftBukkit imports (Shouldn't break every update now)

Updated:

  • Built for latest CraftBukkit Beta Build

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.6.7.1
  • Fixed config issue
Version 0.6.7
  • Updated for 1.5.1
Version 0.6.6
  • Updated for 1.5.x Guess not :/
  • Added new config option so you can disable negative effects for certain drugs (This will be changed for more customization in the future)

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.6.5
  • Fixed items with damage values not returning correctly.
  • Added config option to disable Auto-Update checker

BACKUP THE DRUG IDs IN YOUR CONFIG, IT WILL REGENERATE THIS UPDATE.

Version 0.6.4
  • Fixed renaming items yielding unlimited drugs
  • Fixed effects not doing what they're supposed to do
Version 0.6.3
  • Updated for 1.4.7-R0.1
  • Fixed default drugs always working
  • Added a new "DO_NOT_TOUCH_2" option in the config. That means don't change it.
Version 0.6.2
  • Configurable "You begin to feel sober" message
  • Hopefully fixed the crashes / lag with players joining
  • Built against newest bukkit beta build
Version 0.6.1
  • Fixed Permission Error
Version 0.6
  • New heart attack negative effect
  • You can define multiple effects for one drug now, and they can trigger randomly or all at once. To make them trigger randomly, set the "Type:" to Random. To make them trigger all at once, set the "Type:" to All. The effects are separated by commas. Ex: "Effect: 0,1,2,3"
  • Almost complete re-write of the plugin. (Could mean there is errors).
  • Added config stuff (Check the main plugin overview page under the config section)
  • Auto-Update announcer.
  • Slightly adjusted the negative effect percentage. There's now a 12.5% chance of getting a negative effect when you take a drug.
  • Added "drunk" to list of effects.
  • Config will automatically update when there's an update available. (You need to change it to what you had previously if the config updates)
Version 0.5.3
  • Adjusted the message when you take drugs to say "You have taken %drugname%!" Which will replace %drugname% with the name of the drug that you set in the config file. Note: If there is no name defined for the drug, it will automatically make the name "drugs" so it will say "You have taken drugs!".
  • Fixed the problem when you fly across the map in one direction, most of the time kicking you for moving too quickly. It now makes you jittery when walking / looking around.
  • Hopefully fixed the problem where you couldn't use the drugs at all.
Version 0.5.2
  • Again -_-
Version 0.5.1
  • Fixed my derpy problem
Version 0.5
  • Updated to 1.3.1 (Fixed AsyncChatEvent problem)
Version 0.4
  • Fixed the half slabs being broken when you get the fire effect.
  • Added an option to disable negative effects!

IMPORTANT Add this to the bottom of your config, or delete your config and let it make a new one:

Options:
  EnableNegativeEffects: false
Version 0.3.1
  • It's now impossible to place a block drug, (such as shrooms) and use the drug at the same time
Version 0.3.0
  • Changed command to /drugmeup
  • Added data value support (FINALLY)!
  • Removed Super Strength
  • Changed to new event system (Minecraft 1.2 compatible)
  • Bug fixes!
Version 0.2.1
  • Added customizable chat messages
  • Changed /drunk message
Version 0.2.0
  • Added "/drunk reload" support to console
  • Added SuperPerms support (drugs.use) which defaults to OP's
  • Fixed config dupe/un-deleteable glitch
Version 0.1.0
  • Initial