Recommended Build & Update Guide (1.7.10 - 1.12.2)

Discussion in 'CommandHelper' started by PseudoKnight, Jan 13, 2015.

  1. PseudoKnight

    PseudoKnight Well-Known Member

    Recommended Builds
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [CommandHelper v3.3.2-SNAPSHOT.3278 for Bukkit-API Servers]
    Officially supports MC versions: 1.7.10 - 1.12.2. You'll need to get an earlier build for support for earlier versions.
    See tracker for known issues

    For previous versions of Minecraft you can try build 3259, which is right before I removed the last illusions of backwards compatibility for versions prior to 1.7.10. Some things may not work, though. So you may need to build from source. Here's a branch that should work for 1.6.4.
    -------------------------------------------------------------------------------------------------------------------------------------------------

    Update Guide
    Updating to new builds of CommandHelper can sometimes require updates to your scripts and/or extensions. This is not always obvious by the commit messages. Below is a reverse chronological guide to help you with some of these changes to quickly update your code.
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Build 3042]
    - CHAdvanced: not updated
    CHAdvanced no longer supports build 3042 or higher. The server_command event is now built into the CommandHelper core. The file list function can be replaced by CHFiles extension equivalent.
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Minecraft 1.12.1]
    CommandBlocks now call aliases without needing /runalias. So if you have an alias for a vanilla command and CommandBlocks that use the vanilla command, it may break. A manual fix is to add the "minecraft:" prefix to those commands in the affected CommandBlocks. (eg. /fill to /minecraft:fill) Note: this does NOT affect CommandBlocks that already use /runalias or vanilla commands that do not have aliases.
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Minecraft 1.12]
    As of an earlier 1.11.2 build of Spigot, you can no longer set_exp() above 100. In 1.12, setting exp to exactly 100 will now give that player a new level and reset exp to 0%. Set to 99 to avoid this.

    In Craftbukkit they changed the enchantment name output from SWEEPING to SWEEPING_EDGE, but CH will convert this for you if you're creating an item from saved arrays.
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Minecraft 1.11]
    Minecraft changed entity subtypes to be their own entity type. This is reflected in the new Bukkit API and thus in CommandHelper as well. You'll want to search for instances of "guardian", "skeleton", "zombie", and "horse". If you use set_entity_spec() to change their subtype, this is no longer supported. Instead, you'll have to spawn their subtype from the start. (Example: spawn_entity('mule')) I've preserved most of spawn_mob's functionality, however, so you probably don't need to change those. In addition, if you're checking for an entity type in an event bind, you'll need to update that to include a list of all subtypes. (Example: instead of "HORSE" you'll need to check for "HORSE", "MULE", "DONKEY", "ZOMBIE_HORSE", "SKELETON_HORSE", and/or "LLAMA".)
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Minecraft 1.9]
    Potions and Spawn eggs no longer use "data"
    When reading these item arrays, they will have data values of 0. However, when creating a new item with an old data value, it will be converted. Potion and spawnegg meta has been updated to reflect these new changes.

    Player Interact Events with Two Hands
    One or two events will fire now. If two, it's one for each hand. If one, it might be the main_hand or off_hand. Some scripts need to be considered for double event firing. Any script that looks at the item array will need to be updated for off hand support.

    Named Sound Changes
    If you used play_named_sound(), those have changed in Minecraft 1.9.
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Build 3042]
    Breaks compatibility with ALL extensions
    Update to at least these versions (builds) of the extensions to be compatible with CH builds 3042+
    - SKCompat: 2.0.0 (#24)
    - CHVault: 2.0.0 (#11)
    - CHPerms: 2.0.0 (#13)
    - CHVirtualChests: 1.0.5 (#11)
    - CHSpigot: 1.4.3 (#16)
    - CHDynmap: 1.1.3 (#10)
    - CHCitizens: 1.1.5 (#11)
    - CHPlotSquared: 0.1.1 (#1)
    - CHStargate: 1.0.2 (#7)
    - CHVotifierListener: 1.0.2 (#2)
    - CHGCC: 1.0.2 (#1)
    - CHPython: 1.0.2 (#5)
    - CHJavascript: 1.0.2 (#10)
    - CHGroovy: 1.0.2 (#10)
    - CH-mcMMO: 0.1.0 (#6)
    - CHDangerous: 1.0.2 (#7)
    - CHHTTPd: 0.0.2 (#23)
    - CHGriefPrevention: 1.2.1 (#6)
    - CHPex: 1.1.1 (#9)
    - CHTag: 1.0.2 (#7)
    - CHBarAPI: 1.0.1 (#7)
    - CHPluginManager: 1.1.0
    - CHWorldGuard: 1.1.0 (#21)
    - CHIRC: 0.0.0 (#8)
    - CHLogblock: 0.1.1 (#5)

    The following extensions do not support builds 3042+
    - CHPlotMe: not updated
    - CHServerCommunication: not updated
    - CHLilyPad: not updated
    -------------------------------------------------------------------------------------------------------------------------------------------------
    [Build 2861]
    The following extensions do not support builds 2861+
    - CHLegendChat: not updated
    - CHMIDI: not updated
    - CHEchoPet: not updated
    -------------------------------------------------------------------------------------------------------------------------------------------------
    Last edited: Nov 15, 2017 at 8:20 PM
    jb_aero likes this.
  2. Jason Krause

    Jason Krause Member

    Thanks for this PseudoKnight.
  3. spudsrus

    spudsrus Member

    Thanks PseudoKnight, this is super handy!

    Do you have any ballpark estimate on getting CHWorldGuard running on 3.3.1 build 3042 and above?
    =]
  4. PseudoKnight

    PseudoKnight Well-Known Member

    Started working on some changes for someone else. Finished it just for you. It should now also fire on teleports, vehicle enter, vehicle move. This should make it more reliable for certain uses.
  5. spudsrus

    spudsrus Member

    <3
    Thankyou!