My plugin suddenly not likes to work partially

Discussion in 'Plugin Development' started by Zarkopafilis, Jun 19, 2014.

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

    Zarkopafilis

    Heres the thing. I changed all the .getName() to .getUniqueId(). I have this really big loop for player interact events , it basically checks for signs and player gets to choose a gun. He can choose from SMG/Shotgun/Sniper/Bazooka . The same stuff are going on for all of these guns. My plugin after the UUID change , doesn't like players who pick shotguns. (With debug msgs everything gets excecuted but missing items , missing item meta's , not dyed armor , sometimes server freeze and a nullpointer exception in a random event occurs for no reason!)

    Ideas? The only change made was .getName() to .getUniqueId()!
     
  2. Offline

    DragonGCBroZ

    Well when getting a UUID it's probebly for storing data... but since the Sender is a player you can still do .getName() it wont do any harm*
     
  3. Offline

    Zarkopafilis

    It was fixed anyway
     
Thread Status:
Not open for further replies.

Share This Page