CrashAPI icon

CrashAPI -----

Library for CTP plugins.




Additions:
  • Added DamageCauseType for methods to do with DamageCause
  • Added support for 1.21 enchantments to EnchantmentData
  • Added "Mace" ItemType
Changes:
  • "Melee" ItemType now includes the Mace
  • MatData now includes method isShulkerBox
  • PotData now includes Mining Fatigue and Nausea potion effects due to name changes in 1.20.5
  • PotData now includes isBadPotionEffect method (used for Magic Guard enchantment in EnchantmentSolution)
  • PotData now properly differentiates between 1.20.4 and lower and 1.20.5 potion methods
----------, May 30, 2024

Fixes:
  • Fix critical issue with Sweeping Edge not having the right ID in 1.20.4 and below
----------, Apr 26, 2024

Additions:
  • Support:
    • Added support for 1.20.5
  • Data:
    • Added ParticleData and PotData for changes to particles and potions, respectively
Changes:
  • Data:
    • Updated EnchantmentData to include a lot of the renamed Enchantments as static fields for backwards compatibility
  • Misc:
    • Updated file paths for better readability
----------, Apr 25, 2024

Changes:
  • Added method isBook() to MatData which returns true if the item type is Book or Enchanted Book
----------, Mar 4, 2024

Fixes:
  • Fix for issue with 1.20.2 that caused plugin-placed animals to blink out of existence
----------, Feb 3, 2024

Fixes:
  • Fix for mob heads not working on some versions
    • Will probably prevent stacking of old and new mob heads
  • Fix for LocationUtils returning incorrect values on hasBlockAbove() and hasBlockBelow()
----------, Jan 13, 2024

Changes:
  • Configurations:
    • Allow ItemData (ItemStack + MMOItems Info) to be saved to configuration files
    • Allow Long values to be saved to configuration files
  • Support:
    • Added explicit support for 1.20.2 and 1.20.4
Fixes:
  • Fix for EnchantabilityMaterial returning 1 on swords and lowering enchantment levels/multiple enchantments on them
----------, Dec 30, 2023

Changes:
  • ItemEquipEvent:
    • Added PlayerChangeWorld support to ItemEquipEvent
    • This ensures that with plugins like Multiverse, attributes and potion effects are reapplied automatically
----------, Dec 21, 2023

Additions:
  • Added support for 1.20
  • Added MobHeads for 1.19 and 1.20 mobs
    • Allay, Frogs, Tadpoles, Camels, and the Warden

Changes:
  • Updated support for all 1.19 versions

Fixes:
  • Fix for Swift Sneak not working properly with EnchantmentData
----------, Jun 18, 2023

Fixes:
  • Fix for Arrow Damage not properly calculating
  • Fix for BlockSound trying to get a method from the incorrect class
  • Fix for BlockSound only throwing errors if sound is null - will now print any errors that occur
----------, Jun 21, 2022

CrashAPI Version 1.1.3

Fixes:
  • Fix for version checker believing 1.18.2 is a higher version than 1.19.0
  • Fix for NMS arrow damage being calculated improperly in multiple versions
  • Fix for black hearts when logging into server on multiple versions
  • Fix for lowering max health not lowering current health in multiple versions
  • Fix for block sounds not working in 1.19
  • Fix for entity NBT data not being set correctly in 1.19
----------, Jun 15, 2022

Additions:
  • Language:
    • Added the ability for Spanish localization ("es_es")
Changes:
  • Bukkit Version:
    • Updated the version checker to not require explicit definitions
      • Will make future versions immediately available and make finding issues with it easier
      • Updated advancements to satisfy the new changes
  • Block Sounds:
    • Updated block sounds to use NMS, freeing hardcode space
Fixes:
  • Fix for duplication bug when giving more than 64 items to players using ItemUtils::giveItemToPlayer()
----------, May 29, 2022

Additions:
  • Added the class MobInterface for accurately getting types of mobs, including creatures, animals, etc.

Changes:
  • Fix for arrow damage not accurately calculating using reflection
----------, Feb 2, 2022

Additions:
  • Added 1.17 and 1.18 blocks and mobs to BlockSounds and MobHeads
  • Support for 1.18 and 1.18.1
Changes:
  • Removed MaterialSounds as they were not needed
  • Remove lang3 support for custom support
  • ArmorEquipEvent and ItemEquipEvent have been merged into EquipEvent to handle both types of equipping
  • ItemSlotType has been updated to contain every inventory slot of player inventories and include an optional Raw Slot integer for compatibility with InventoryClickEvent
  • Added Fishing Stick to Enchantable items (Carrot on a Stick, Warped Fungus on a Stick)
  • Removed compatibility for 1.13.x, 1.14.x, 1.15.x, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, and 1.17
    • 1.16.5 and 1.17.1 support remain
    • Due to the Java vulnerability found a few days ago, 1.16.5 and 1.17.1 are the only supported versions for 1.16 and 1.17 due to Spigot release updates just for these versions.
    • Older versions are preventing CrashAPI plugins from reaching the full potential of the new versions and thus have been discontinued
----------, Dec 12, 2021

Changes:
  • Added ability to get and set mob NBT data
----------, Aug 7, 2021

Changes:
  • Compatibility:
    • Added explicit 1.17.1 support
  • ItemNMS:
    • Add ability to edit item NBT data

Fixes:
  • Fix for getCurrentTick() returning weird values
----------, Jul 27, 2021

Changes:
  • NMS:
    • Updated for explicit 1.17 support
    • Removed redundant NMS code
      • Send messages to hotbar via Spigot API
      • Get Trident from a thrown projectile via the proper methods
  • Recipes:
    • Added getRecipe() method to CrashRecipe
    • Added CrashAdvancedShapedRecipe class
      • For adding recipes with custom metadata so it does not always try to reload and saves correctly
  • Server:
    • Now gets the current tick the same way Bukkit finds it without relying on Bukkit NMS
  • Versions:
    • Will now try to get versions from local file if none were found remotely
----------, Jun 16, 2021

Changes:
  • Allow NMS code to find the proper version even if the server it is connected to has no Internet.

Notes: This should have very little impact on the vast majority of players, but being without Internet for over a week and not being able to test made this a very important change for my sanity.
----------, May 15, 2021

Fixes:
  • Fix for MatData being given a null string
----------, Apr 29, 2021

Fixes:
  • Fix for issue with MMOItems compatibility not being loaded
  • Fix for IndexOutOfBoundsException when creating certain backup files
----------, Apr 25, 2021

Changes:
  • Configurations:
    • Configurations should now revert before being reloaded
    • Put data backups into another sub-folder
    • Add a copy method to YamlConfig
  • Versions:
    • Added explicit support for 1.16.5

Fixes:
  • Fix for null block sounds throwing errors
  • Fix for API versions not working correctly
----------, Jan 19, 2021

Small changes to the API for Enchantment Solution.
----------, Dec 2, 2020

Fixes:
  • Fix for Turtle Shell Helmets not being considered a Helmet
  • Fix for giving players 0 items or air causing issues
----------, Nov 20, 2020

Changes:
  • Advancements:
    • Require the plugin to return from advancements
  • Configurations:
    • Standardized messaging when initializing configuration files
  • Items:
    • Optimized adding items to inventories

Fixes:
  • Fix for multiple initialization messages showing up during loading of the plugin and child plugins
----------, Nov 12, 2020

Changes:
  • Added support for 1.16.3 and 1.16.4
  • Changed EquipListener handlers to only monitor events
  • Added PlayerItemHeldEvent listener to EquipListener

Fixes:
  • Fix for failing to find plugin versions preventing a full load of the plugin
----------, Nov 3, 2020

Additions
  • Added Vault compatibility directly into CrashAPI
Changes:
  • Change to Bukkit versions to better accompany updates to Minecraft versions
  • ItemAddEvent:
    • Remove ItemAddEvents from just holding items
    • Remove ItemAddEvents from equipping items and armor
    • Allow changes to items from ItemAddEvent to go into effect (such as fixing enchantments)
Fixes:
  • Fix for getMessages with invalid language.yml files not handling exceptions
  • Fix for items never being dropped naturally
  • Fix for negative ticks not properly working
----------, Oct 27, 2020

Additions:
  • Added additional functions for ItemUtils to simply spawn or create spawnable items

Changes:
  • Added Piglin Brute to the list of heads available
Fixes:
  • Fix for Advancements and Recipes not supporting color characters
  • Fix for BukkitVersion not being properly updated to support 1.16.2
  • Fix for Shulker Boxes not being a proper item which enchantments can be placed on
----------, Aug 20, 2020

Additions:
  • Events:
    • Added the ItemAddEvent
      • Made to signify when an item enters an inventory
      • Extends the vanilla PlayerEvent
      • Adds an item variable for the item being added/has been modified
  • Utilities:
    • Added the MobHeads utility
      • Given a certain entity, can retrieve the vanilla or custom mobhead of that entity
      • Mob names can be customized via the language.yml file

Changes:
  • Compatibility:
    • Updated NMS to include 1.16.2
  • Configurations:
    • "vanilla.<material>" has been changed to "blocks.<material>"
    • Also removed invalid item names from the list
  • Events:
    • Added COMMAND enum to EquipMethod and HandMethod for getting items from commands/other
  • ItemSerialization:
    • Updated the ItemSerialization class to more closely resemble Spigot's item serialization
      • Old values can still be migrated over without issue
  • Language:
    • Removed default support for Chinese and German as they are not finalized

Fixes:
  • Fix for VersionCheck not knowing the spigot link for CrashAPI
----------, Aug 12, 2020

Resource Information
Author:
----------
Total Downloads: 15,982
First Release: Aug 1, 2020
Last Update: May 30, 2024
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings