Thread: Rune evo v3 commands - how do you make the commands all be in one folder?

Results 1 to 3 of 3
  1. #1 Rune evo v3 commands - how do you make the commands all be in one folder? 
    Registered Member
    Join Date
    Apr 2014
    Posts
    43
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    I have Rune Evo V3 and all the commands are separate, split between 6 folders in src-com-rs-game-player-content with a 'commands' text doccument and a folder called 'commands' with Owner, Admin, Moderator, Regular, Donator and Wiki Editor. I was wondering how I could move all the foldered commaands into one single folder, 'Commands'Java' rather than have the separate files, due to many guides requiring 'commands.java'.
    Thanks

    The commands.java content:

    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

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Look at the commands.java in another file?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2014
    Posts
    60
    Thanks given
    44
    Thanks received
    5
    Rep Power
    18
    Why would you want to change this system? Lose that 'let's put everything into one class' mentality lmfao
    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. How do you make commands?
    By chewy099 in forum Help
    Replies: 15
    Last Post: 01-29-2014, 07:43 AM
  2. How do you make commands for multiple people?
    By EverEffect in forum Help
    Replies: 18
    Last Post: 09-18-2011, 07:15 PM
  3. Replies: 4
    Last Post: 12-03-2009, 03:31 AM
  4. how do you make a command teleport you?
    By Jddogg9 in forum Help
    Replies: 6
    Last Post: 07-07-2009, 10:20 PM
  5. [Req] How do you make a tab tele at a level [Req]
    By o0x vvv x0o in forum Tutorials
    Replies: 5
    Last Post: 10-23-2007, 11:27 AM
Tags for this Thread

View Tag Cloud

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