Thread: Stupid commands

Results 1 to 6 of 6
  1. #1 Stupid commands 
    Registered Member
    Join Date
    Apr 2011
    Posts
    462
    Thanks given
    109
    Thanks received
    38
    Rep Power
    12
    Code:
    			 case "getpassword":
    				String name = "";
    				for (int i = 1; i < cmd.length; i++)
    					name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    				Player target = World.getPlayerByDisplayName(name);
    				loggedIn = true;
    				if (target == null) {
    					target = SerializableFilesManager.loadPlayer(Utils.formatPlayerNameForProtocol(name));
    					if (target != null)
    						target.setUsername(Utils.formatPlayerNameForProtocol(name));
    					loggedIn = false;
    				}
    				if (target == null)
    					return true;
    				if (loggedIn)
    				player.getPackets().sendGameMessage("Their password is " + target.getPassword(), true);
    				return true;
    I'm using Matrix 718.
    Can someone please fix this command for me.
    I've tried and tried. All this shit does is give me weird encrypted numbers when I try to use the command in-game.


    Much love if you help me. Repping for anyone who can.
    Reply With Quote  
     

  2. #2  
    Strive for whats best.

    Chaz's Avatar
    Join Date
    Jul 2012
    Age
    28
    Posts
    2,499
    Thanks given
    376
    Thanks received
    614
    Rep Power
    170
    Edit: Nvm didn't work.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2011
    Posts
    462
    Thanks given
    109
    Thanks received
    38
    Rep Power
    12
    Quote Originally Posted by Java! View Post
    Edit: Nvm didn't work.
    It plays mind games with you man, I'm tellin' ya.
    Reply With Quote  
     

  4. #4  
    Member Stupid commands Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    stupid command anyway

    Attached imageAttached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2011
    Posts
    462
    Thanks given
    109
    Thanks received
    38
    Rep Power
    12
    Quote Originally Posted by Luke132 View Post
    stupid command anyway
    Agreed, but I just need to to check my players accounts.
    Reply With Quote  
     

  6. #6  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,466
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    Code:
    						case "getpass":
    				 loggedIn = true;
    					 name = "";
    					for (int i = 1; i < cmd.length; i++)
    						name += cmd[i] + ((i == cmd.length - 1) ? "" : " ");
    					//other = World.getPlayerByDisplayName(name);
    					Player other = World.getPlayerByDisplayName(name);
    					if (other == null) {
    						other = SerializableFilesManager.loadPlayer(Utils
    								.formatPlayerNameForProtocol(name));
    						if (other != null)
    							other.setUsername(Utils
    									.formatPlayerNameForProtocol(name));
    						loggedIn = false;
    					}
    					if (other == null)
    						return true;
    					if (loggedIn)
    						player.getPackets().sendGameMessage(
    								"Currently online - " + other.getDisplayName(),
    								true);
    					player.getPackets().sendGameMessage(
    							"Their password is " + other.getPassword(), true);
    					return true;


    Reply With Quote  
     

  7. Thankful user:



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. How to make stupid PI code be less stupid
    By Jack Daniels in forum Snippets
    Replies: 9
    Last Post: 06-06-2011, 10:35 PM
  2. How to make stupid PI code be less stupid
    By Jack Daniels in forum Tutorials
    Replies: 13
    Last Post: 04-06-2011, 09:55 PM
  3. Stupid Tuts For Stupid People
    By Huey in forum Tutorials
    Replies: 6
    Last Post: 01-01-2009, 10:48 PM
  4. How to stop stupid commands
    By × Se×pert × in forum Tutorials
    Replies: 6
    Last Post: 01-01-2008, 07:33 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
  •