Fixed update message error
Fixed custom mining speed for bedrock and obsidian
You can now implement custom mining speed to your item!
item.setMiningSpeed(double) // (double) speed multiplier
Fixed config values and checks.
Fixed plugin not shutting down after an error and causing problems.
Removed unused class to clean up the code a bit
Added hooks, learn more
here
getItemByName(String (name)) // Will return the item that goes by this name
giveItem(Player, Item) // Will give the item to the player (as ItemStack)
core.splashDamage(Player, double, double, double) // Will damage all the entites in this radius
core.getCurrentTimeMs() // Will return the current uptime in ms
core.color(String) // Will return a colored string (for example: if you put "&ctest" it will return "
test")
Added dupe detection options in the config
Arrow land action.
Go to the documents to learn how to use it.
Added 4 more methods:
core.showPlayer(Player)
core.showPlayer(Player, long)
core.hidePlayer(Player)
core.hidePlayer(Player, long)
Added global variables.
They will be saved at globalVariables.yml
core.getGlobalVariable(String) // Get variable value
core.setGlobalVariable(String, Object) // Set variable value
Changed /toggledupealerts command messages.
/toggledupealerts
permission: itemscore.toggledupealerts
toggle the dupe alerts for the player.
You can now change the prefix of the plugin from the config and if your plugin isn't updated it will send every op player that the plugin need an update (can be changed from the config)
You can now use custom player heads.
Example:
item.setSkullOwner("<playerName>"); // Item material should be 'SKULL_ITEM' for lower versions and for higher versions 'PLAYER_HEAD'
New methods:
core.playerHead(String) // Returns item with the head of the player with the name you specified.
core.playerHead(String, ItemStack) // Instead of creating new item it will change an existing item.
Added vault support.
core.balance(Player) // (Player) Get the player's current balance (in double)
core.deposit(Player, double) // (Player) the player to deposit (double) the amount to deposit (will return boolean -> false if failed, true if succeeded)
core.withdraw(Player, double) // (Player) the player to withdraw (double) the amount to withdraw (will return boolean -> false if failed, true if succeeded)
core.shootArrow(Player) will make the player lunch an arrow, method also returns the Arrow class to modify.
Fixed error when left clicking / right clicking
item.setSwapAction() (1.9+)
item.setShootAction()
item.setPickupAction()
Added the "api" variable to every action/event, you can use it for stats placeholders and much more in the future.
Fixed error when trying to get item with stats
Fixed the random messages again
Reuploaded because it wasn't the latest jar
Removed some random messages in the console
Fixed the bug that you couldn't get the item from the /ic menu in 1.16
now the plugin's folders will be created automatically
now all the custom items will be unbreakable and added core.getSound(String) method to use the player.playerSound() method.
core.getLocation(Location, double, double)
You don't need to set code for every action now.
Now you have one code for everything.
How to use it:
item.setLeftAction(core.createRunnable("<code>"))
item.setLeftSAction(core.createRunnable("<code>"))
item.setRightAction(core.createRunnable("<code>"))
item.setRightSAction(core.createRunnable("<code>"))
item.setShiftAction(core.createRunnable("<code>"))
item.setDropAction(core.createRunnable("<code>"))
item.setPieceBonus(core.createRunnable("<code>"))
item.setDamageEvent(core.createRunnable("<code>"))
Currently, the website isn't updated to support the stats update.
API! Put this jar in your project and add it to your project dependencies to start using its API!
How to use:
ItemsCoreAPI api = ItemsCore.getItemsCoreAPI(); // To get the api
Object value = api.placeholder("%itemstat.<itemname>.<statname>%") // To get stat value
Fixed some things with the events & you can now do core.cancelEvent(<Event>)
Added damage event.
(Event will only call when the player is using ItemsCore item)
Usage:
core.setOnDamageEvent(core.createRunnable("<code>"))
Special variables:
attacker -> Player who attacked
victim -> Entity that got damaged
cause -> DamageCause of the event
event -> The event itself (you can do event.setCancelled(true) to cancel it like it never happened)
damage -> The amount of damage dealt
item -> Item used to damage
* if you apply a shift action to an armor piece it will run the action only when the piece is on you.
* dupe detection minor changes
* cleaned the plugin a bit and saved file size
Added dupe detection and particles support for higher versions
fixed particles & explosions and added some more QoL methods
core.createExplosion()
core.createParticle()