How to classify something?

Discussion in 'Spigot Plugin Development' started by G_Archangell, Nov 20, 2019.

  1. Obviously by the question I am extremely new to Java but the idea is that you are a class lets say warrior and you want to switch to another class by using /class switch knight

    how do i apply the knight class and take away the warrior class from the player?

    Originally I tried p.isPermissionSet but that cant take away permissions?
  2. In my opinion, you're question is too broad/vague/unspecific. Are you able to refine exactly what your issue is?
  3. You'd probably want to create a map, where the key is the player (or their uuid) and the value is their class.
    Then create your command to put the key/value into your map.
    • Agree Agree x 2