cannot pass playerrespawn event...

Discussion in 'Plugin Development' started by welsar55, Feb 19, 2013.

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

    welsar55

    i cant pass event and its looking at this if statement
    Code:
            if(plugin.mapnumber == 1)
    heres were i say what plugin is
    Code:
        private final fallingblockfreeforall plugin;
     
        public respawn(fallingblockfreeforall plugin) {
            this.plugin = plugin;
        }
    hers the integer
    Code:
            public Integer mapnumber = null;
     
  2. Offline

    RealDope

    either don't initialize it, or set it to a number. If you try to use something with a null value like that you get an NPE.

    Show error please so I can be certain.
     
  3. Offline

    welsar55

    i cant find the error. but it is a NPE
     
  4. Offline

    RealDope

    Can't find the error?...
     
  5. Offline

    welsar55

    sorry i mean i did a temp fix
     
Thread Status:
Not open for further replies.

Share This Page