Solved CraftPlayer import in different version

Discussion in 'Plugin Development' started by Jobi, Apr 11, 2013.

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

    Jobi

    Ive got a little "problem" in one of my plugins because I have to use the CraftPlayer class, but the package of the class changes with every new version. Is there any way to import a class in a package with changing names?
     
  2. Offline

    MylesIsCool

    Look into using reflection, here's a tutorial which uses it to change player names:
     
    Jobi likes this.
  3. Offline

    Jobi

    Thanks!!! Now I don't have to update my plugins just because the imports are wrong.
     
Thread Status:
Not open for further replies.

Share This Page