Thread: getting an error when i load up server

Results 1 to 9 of 9
  1. #1 getting an error when i load up server 
    Registered Member SKIES's Avatar
    Join Date
    Mar 2018
    Posts
    31
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    When i load up my server i'm getting an error i changed something in DeathEvent.java which broke it initially but i deleted everything i added and put it back to how it was and it started happening ive tried to see what's causing it and i cant seem to figure it out.
    Code:
    java.lang.ExceptionInInitializerError
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at com.rs.game.player.controlers.ControlerHandler.init(ControlerHandler.java:111)
    	at com.rs.Launcher.main(Launcher.java:118)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    	at com.rs.game.player.controlers.events.DeathEvent.<clinit>(DeathEvent.java:45)
    	... 4 more
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2018
    Posts
    29
    Thanks given
    0
    Thanks received
    7
    Rep Power
    38
    Post line 45 in DeathEvent. You have an ArrayIndexOutOfBoundsException as you can see by the error. It literally tells you where the issue is.
    [Only registered and activated users can see links. ] - become the boss.
    Reply With Quote  
     

  3. #3  
    Registered Member SKIES's Avatar
    Join Date
    Mar 2018
    Posts
    31
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by The C Word View Post
    Post line 45 in DeathEvent. You have an ArrayIndexOutOfBoundsException as you can see by the error. It literally tells you where the issue is.
    Code:
         , Settings.RESPAWN_PLAYER_LOCATION[1]
    Reply With Quote  
     

  4. #4  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,810
    Thanks given
    927
    Thanks received
    546
    Rep Power
    299
    Post your
    Code:
     Settings.RESPAWN_PLAYER_LOCATION
    Reply With Quote  
     

  5. #5  
    Registered Member SKIES's Avatar
    Join Date
    Mar 2018
    Posts
    31
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Code:
    RESPAWN_PLAYER_LOCATION = {new WorldTile(3182, 5713, 0)};
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2018
    Posts
    29
    Thanks given
    0
    Thanks received
    7
    Rep Power
    38
    If you only plan on having one set of coords for respawning a player, it makes sense not to be in an array in the first place.
    [Only registered and activated users can see links. ] - become the boss.
    Reply With Quote  
     

  7. #7  
    Registered Member SKIES's Avatar
    Join Date
    Mar 2018
    Posts
    31
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by The C Word View Post
    If you only plan on having one set of coords for respawning a player, it makes sense not to be in an array in the first place.
    bro how i remove it then i just want 1 respawn location that was what i was trying to do before it before i have no idea how to fix it?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    May 2018
    Posts
    29
    Thanks given
    0
    Thanks received
    7
    Rep Power
    38
    Code:
    public static WorldTile respawnPlayerLocation = new WorldTile(3182, 5713, 0);
    and then whatever your method is to move a player to a new position, use as

    Code:
    player.movePlayer(Settings.respawnPlayerLocation);
    [Only registered and activated users can see links. ] - become the boss.
    Reply With Quote  
     

  9. Thankful user:


  10. #9  
    Registered Member SKIES's Avatar
    Join Date
    Mar 2018
    Posts
    31
    Thanks given
    5
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by The C Word View Post
    Code:
    public static WorldTile respawnPlayerLocation = new WorldTile(3182, 5713, 0);
    and then whatever your method is to move a player to a new position, use as

    Code:
    player.movePlayer(Settings.respawnPlayerLocation);
    tysm
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. I get an error when staring eclipse?
    By Zmancool in forum Help
    Replies: 7
    Last Post: 08-28-2012, 02:21 AM
  2. I get this error when i run my server
    By shopkeeper in forum Help
    Replies: 1
    Last Post: 06-11-2012, 09:54 AM
  3. Replies: 6
    Last Post: 04-04-2012, 03:26 AM
  4. Getting an error when running?
    By Meerster in forum Help
    Replies: 6
    Last Post: 10-12-2011, 04:18 AM
  5. Replies: 4
    Last Post: 02-20-2010, 07:39 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •