NMS NMSHelper - Makes NMS code, compatible across all versions!

Discussion in 'Resources' started by Chiller, Jul 25, 2015.

?

How do you currently implement NMS?

  1. Special cases for each version of Bukkit

    23.5%
  2. A hacked up implementation of java reflection

    23.5%
  3. I just switched to NMSHelper

    17.6%
  4. Other, reply below

    0 vote(s)
    0.0%
  5. I don't

    35.3%
Thread Status:
Not open for further replies.
  1. Offline

    MCMatters

    @Konato_K Well you have to write a new class for every version so thats like using Reflection and making the plugin disable if they use it on a higher version then the plugin dev released it for. Reflection is used so the Server Owners can update their server without having the plugin break. But when the NMS changes their method names all the server owner does is downgrade and contact the Developer of the plugin. Simple.
     
  2. Offline

    Konato_K

    @MCMatters Yes, I have to make a class for each version, but I keep backwards compatibility no matter what happens and it does work across all versions, also, if someone uses it in a higher version then it won't work because it's not intended to work, I can't predict if the methods will change or not in the next version, so it's better for my plugin to not try to work with possible broken reflection.

    After all, writing a new class doesn't take more than a couple minutes.
     
    Europia79 likes this.
  3. Offline

    Europia79

Thread Status:
Not open for further replies.

Share This Page