Thread: Commands

Results 1 to 6 of 6
  1. #1 Commands 
    Registered Member
    Join Date
    Jun 2014
    Posts
    144
    Thanks given
    3
    Thanks received
    8
    Rep Power
    3
    YO dude I'm using Rune-Evo 718 and I'm trying to make / edit commands but there is no commands in the commands.java? where else can the commands be? this is my commands.java stuff:

    Code:
    package com.rs.game.player.content;
    
    import com.rs.game.player.Player;
    import com.rs.game.player.content.commands.Administrator;
    import com.rs.game.player.content.commands.Donator;
    import com.rs.game.player.content.commands.Moderator;
    import com.rs.game.player.content.commands.Owner;
    import com.rs.game.player.content.commands.Regular;
    import com.rs.game.player.content.commands.WikiEditor;
    
    public final class Commands {
    
    	public static boolean processCommands(Player player, String command, boolean console, boolean clientCommand) {
    		if (command.length() == 0)
    			return false;
    		String[] cmd = command.toLowerCase().split(" ");
    		if (cmd.length == 0) 
    			return false;
    		
    		if (player.isOwner()) {
    			if (Owner.processCommand(player, cmd, console, clientCommand)) {
    				return true;
    			}
    		}
    		
    		if (player.isOwner() || player.isAdmin()) {
    			if (Administrator.processCommand(player, cmd, console, clientCommand)) {
    				return true;
    			}
    		}
    		
    		if (player.isOwner() || player.isAdmin() || player.isModerator()) {
    			if (Moderator.processCommand(player, cmd, console, clientCommand)) {
    				return true;
    			}
    		}
    		
    		if (player.isOwner() || player.isAdmin() || player.isDonor()) {
    			if (Donator.processCommand(player, cmd, console, clientCommand)) {
    				return true;
    			}
    		}
    		
    		if (player.isOwner() || player.isAdmin() || player.isWikiEditor()){
    			if (WikiEditor.processCommand(player, cmd, console, clientCommand)) {
    				return true;
    			}
    		}
    			
    		return Regular.processCommand(player, cmd, console, clientCommand);
    	}
    	
    	private Commands() {
    
    	}
    }
    Reply With Quote  
     

  2. #2  
    Registered Member alexsandro's Avatar
    Join Date
    Apr 2013
    Age
    28
    Posts
    346
    Thanks given
    109
    Thanks received
    27
    Rep Power
    0
    Code:
    import com.rs.game.player.Player;
    import com.rs.game.player.content.commands.Administrator;
    import com.rs.game.player.content.commands.Donator;
    import com.rs.game.player.content.commands.Moderator;
    import com.rs.game.player.content.commands.Owner;
    import com.rs.game.player.content.commands.Regular;
    import com.rs.game.player.content.commands.WikiEditor;
    "Death is not the greatest loss in life.
    The greatest loss is what dies inside while still alive.
    Never surrender." - Tupac Shakur
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Feb 2013
    Posts
    373
    Thanks given
    44
    Thanks received
    21
    Rep Power
    118
    import com.rs.game.player.content.commands.Administrator;
    import com.rs.game.player.content.commands.Donator;
    import com.rs.game.player.content.commands.Moderator;
    import com.rs.game.player.content.commands.Owner;
    import com.rs.game.player.content.commands.Regular;
    Don't know much about 508+ always worked with 317 revisions but try looking for these . java files
    Code:
    Administrator.java
    Donator.java
    Moderator.java
    Owner.java
    Regular.java
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2014
    Posts
    144
    Thanks given
    3
    Thanks received
    8
    Rep Power
    3
    Quote Originally Posted by alexsandro View Post
    Code:
    import com.rs.game.player.Player;
    import com.rs.game.player.content.commands.Administrator;
    import com.rs.game.player.content.commands.Donator;
    import com.rs.game.player.content.commands.Moderator;
    import com.rs.game.player.content.commands.Owner;
    import com.rs.game.player.content.commands.Regular;
    import com.rs.game.player.content.commands.WikiEditor;
    what are you trying to tell me
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2014
    Posts
    144
    Thanks given
    3
    Thanks received
    8
    Rep Power
    3
    Quote Originally Posted by Mr Synful View Post
    Don't know much about 508+ always worked with 317 revisions but try looking for these . java files
    Code:
    Administrator.java
    Donator.java
    Moderator.java
    Owner.java
    Regular.java
    thanks buddy, found it!
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2014
    Posts
    813
    Thanks given
    69
    Thanks received
    47
    Rep Power
    9
    Next time use 530+ help section.
    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. [458] Command List.
    By Impulser in forum RS2 Client
    Replies: 44
    Last Post: 06-11-2008, 08:17 PM
  2. ::pnpc command!
    By Pancakebuddy in forum Tutorials
    Replies: 7
    Last Post: 05-22-2007, 05:07 AM
  3. Loading Commands From Text File
    By ThatOneServer in forum Tutorials
    Replies: 2
    Last Post: 05-05-2007, 12:36 PM
  4. Tokenized Commands
    By ThatOneServer in forum Tutorials
    Replies: 1
    Last Post: 05-03-2007, 11:18 AM
  5. Console Commands
    By ZeroFreeze in forum Tutorials
    Replies: 7
    Last Post: 04-30-2007, 12:53 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
  •