Thread: How To Fix 614 White Screen Crash Caused By Yell

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 How To Fix 614 White Screen Crash Caused By Yell 
    08-13, SpawnScape Owner

    jet kai's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    870
    Thanks given
    630
    Thanks received
    957
    Rep Power
    5000
    You wont need to edit the yell used by the console because it doesn't use < or >.

    First open up Yell.java

    Under

    Code:
    		for(int i = 1; i < len; i ++) {
    Add

    Code:
    		if(args[i].contains(">") || args[i].contains("<")) {
    		p.getFrames().sendChatMessage(0, "You can't use them symbols");
    		return;
    		}

    Or you can do this

    Code:
    		if(args[i].contains("<euro>")) {
    		p.getFrames().sendChatMessage(0, "Stop trying to crash the server.");
    		return;
    		}
    Easy.
    Reply With Quote  
     

  2. #2  
    Last known as Orangez

    Join Date
    Sep 2010
    Posts
    194
    Thanks given
    0
    Thanks received
    21
    Rep Power
    2
    2nd one is classic ;s change name to like naaah idiot or something hehe...
    Reply With Quote  
     

  3. #3  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Those symbols only crash the server when not used what they are used for.
    ©®
    Reply With Quote  
     

  4. #4  
    08-13, SpawnScape Owner

    jet kai's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    870
    Thanks given
    630
    Thanks received
    957
    Rep Power
    5000
    Quote Originally Posted by visser View Post
    Those symbols only crash the server when not used what they are used for.
    Every 614 gets crashed by <euro> now just shut up and stop spamming all my threads/posts for post count.
    Reply With Quote  
     

  5. #5  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Quote Originally Posted by jet kai View Post
    Every 614 gets crashed by <euro> now just shut up and stop spamming all my threads/posts for post count.
    Mine doesn't, and i'm not trying to get my post count up, i'm pointing out the obvious.
    ©®
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2010
    Age
    32
    Posts
    603
    Thanks given
    96
    Thanks received
    43
    Rep Power
    59
    Code:
    		if (command[0].equalsIgnoreCase("yell")) {
    			/*if (player.getRights() == 0 && !player.isDonator() && !player.isRespected()) {
    				player.sendMessage("You need to be a donator or respeted to yell.");
    				return;
    			}*/
    			String yell = getCompleteString(command, 1);
    			String[] badYells = { ">", "<", };
    			for (int i = 0; i < badYells.length; i++) {
    				if (yell.contains(badYells[i])) {
    					player.sendMessage("You cannot use HTML format while yelling.");
    					return;
    				}
    			}
    			String rank = "";
    			Misc.formatPlayerNameForDisplay(player.getUsername());
    			if (player.getRights()==0) {
    				rank = "[Player]["+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getRights()==1) {
    				rank = "[<b><col=800080>Mod</col></b>] [<img=0>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getRights()==2 && !player.getUsername().equalsIgnoreCase("Tainted")) {
    				rank = "[<b><col=FF0000>Admin</col></b>] [<img=1>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getUsername().equalsIgnoreCase("Tainted")) {
    				rank = "[<b><col=FF0000><shad=000000>Owner</col></shad></b>] [<img=1>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			//if (player.isRespected() && player.getRights() == 0) {
    				//rank = "[<b><col=FDD017>Legit-Dicer</col></b>] ["+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    				
    			//}
    			String product = rank + ": " + yell;/*
    			if (product.length() > 112) {
    				player.sendMessage("Message too large, try shortening down your message.");
    				return;
    			}*/
    			for(Player pl : World.getWorld().getPlayers()) {
    				pl.sendMessage(product);
    			}
    		}
    MUCH better way to do it ^
    Reply With Quote  
     

  7. #7  
    08-13, SpawnScape Owner

    jet kai's Avatar
    Join Date
    Dec 2009
    Age
    28
    Posts
    870
    Thanks given
    630
    Thanks received
    957
    Rep Power
    5000
    Quote Originally Posted by Ta1nt3d View Post
    Code:
    		if (command[0].equalsIgnoreCase("yell")) {
    			/*if (player.getRights() == 0 && !player.isDonator() && !player.isRespected()) {
    				player.sendMessage("You need to be a donator or respeted to yell.");
    				return;
    			}*/
    			String yell = getCompleteString(command, 1);
    			String[] badYells = { ">", "<", };
    			for (int i = 0; i < badYells.length; i++) {
    				if (yell.contains(badYells[i])) {
    					player.sendMessage("You cannot use HTML format while yelling.");
    					return;
    				}
    			}
    			String rank = "";
    			Misc.formatPlayerNameForDisplay(player.getUsername());
    			if (player.getRights()==0) {
    				rank = "[Player]["+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getRights()==1) {
    				rank = "[<b><col=800080>Mod</col></b>] [<img=0>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getRights()==2 && !player.getUsername().equalsIgnoreCase("Tainted")) {
    				rank = "[<b><col=FF0000>Admin</col></b>] [<img=1>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			if (player.getUsername().equalsIgnoreCase("Tainted")) {
    				rank = "[<b><col=FF0000><shad=000000>Owner</col></shad></b>] [<img=1>"+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    			}
    			//if (player.isRespected() && player.getRights() == 0) {
    				//rank = "[<b><col=FDD017>Legit-Dicer</col></b>] ["+Misc.formatPlayerNameForDisplay(player.getUsername()+"]");
    				
    			//}
    			String product = rank + ": " + yell;/*
    			if (product.length() > 112) {
    				player.sendMessage("Message too large, try shortening down your message.");
    				return;
    			}*/
    			for(Player pl : World.getWorld().getPlayers()) {
    				pl.sendMessage(product);
    			}
    		}
    MUCH better way to do it ^
    My way is 1000% easier , thanks for sharing though.
    Reply With Quote  
     

  8. #8  
    Registered Member
    IngeniousPentaSquid's Avatar
    Join Date
    Jun 2011
    Age
    28
    Posts
    993
    Thanks given
    47
    Thanks received
    140
    Rep Power
    79
    Quote Originally Posted by jet kai View Post
    My way is 1000% easier , thanks for sharing though.
    If your one is easier, is it better?
    ©®
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Nov 2010
    Age
    29
    Posts
    2,682
    Thanks given
    824
    Thanks received
    404
    Rep Power
    0
    Easier doesn't mean something is always better. Most of the time the hardest way is better.
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Nov 2011
    Posts
    34
    Thanks given
    4
    Thanks received
    3
    Rep Power
    0
    Mate could you post how to fix logout button on legacy src? it doenst work for me and im sure u know it ;P

    OT: nice and thx
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. White Screen REP++
    By Neekage in forum Help
    Replies: 0
    Last Post: 04-07-2011, 04:40 AM
  2. [PI] White Screen Need Fix!
    By Vault in forum Help
    Replies: 25
    Last Post: 01-02-2011, 09:41 PM
  3. White Screen
    By Aza in forum Help
    Replies: 12
    Last Post: 08-30-2009, 04:09 AM
  4. White screen
    By Aza in forum Help
    Replies: 8
    Last Post: 08-26-2009, 10:37 PM
  5. white screen?
    By willbill1 in forum Help
    Replies: 4
    Last Post: 04-28-2009, 02:11 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •