Thread: Parsing error :'(

Results 1 to 5 of 5
  1. #1 Parsing error :'( 
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    Hey guys. I'm using a Project Insanity based server. I ripped the ::yell command off of my other server (WHICH I DID NOT LEECH)

    I can't get it to work. Here's my error (yes I know what it means, I can't figure out a way to fix it though)
    Code:
    src\server\model\players\packets\Commands.java:410: reached end of file while pa
    rsing
    }→
     ^
    1 error
    Press any key to continue . . .
    Here's the part that's messing me up

    Code:
    }
    	if (command.startsWith("yell") && playerRights == 1) {
    		String text = command.substring(5);
    		yell("@bla@[@whi@Moderator@bla@]@whi@ - "+playerName+"@bla@]:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
    
    	if (command.startsWith("yell") && donator == 1 && playerRights == 0) {
    		String text = command.substring(5);
    		yell("[Donator - "+playerName+"]:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
    	if (command.startsWith("yell") && playerRights == 0) {
    		String text = command.substring(5);
    		yell("@blu@[Player - "+playerName+"]:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
    
    	if (command.startsWith("yell") && playerRights == 2) {
    		String text = command.substring(5);
    		yell("@yel@[@blu@Administrator@yel@]@blu@ - "+playerName+"@yel@]@blu@:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
    	
    	if (command.startsWith("yell") && (playerName.equalsIgnoreCase("Maxpk"))) {
    		String text = command.substring(5);
    		yell("@yel@[@blu@Head Admin@yel@]@blu@ - "+playerName+"@yel@]@blu@:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
            
            if (command.startsWith("yell") && (playerName.equalsIgnoreCase("Ghost"))) {
    		String text = command.substring(5);
    		yell("@bla@[@red@Owner@bla@]@red@- "+playerName+"@bla@]@red@:  " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
    	}
    }
    Reply With Quote  
     

  2. #2  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    bump? plox?
    Reply With Quote  
     

  3. #3  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Close the class.
    Reply With Quote  
     

  4. #4  
    Registered Member Ghost`'s Avatar
    Join Date
    May 2010
    Posts
    416
    Thanks given
    10
    Thanks received
    13
    Rep Power
    2
    How is it not closed?
    Reply With Quote  
     

  5. #5  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    Quote Originally Posted by ShadowGhost View Post
    How is it not closed?
    Because you're getting an error telling you it's not.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •