Thread: [PI] Disabling Command @ Duel Arena

Results 1 to 3 of 3
  1. #1 [PI] Disabling Command @ Duel Arena 
    Registered Member
    Join Date
    Jan 2013
    Posts
    148
    Thanks given
    4
    Thanks received
    4
    Rep Power
    16
    Hey Everyone,

    There are command on my server that spawn your runes etc and I would like to disable those commands at duel arena.

    For example I would like to disable the following command and have a send message that says "You cannot use this command while at the Duel Arena"

    Code:
    			if (playerCommand.equalsIgnoreCase("veng")) {
    				c.getItems().addItem(9075, 2000000);
    				c.getItems().addItem(557, 2000000);
    				c.getItems().addItem(560, 2000000);
    			}
    Thanks!
    Reply With Quote  
     

  2. #2  
    ~Axium Developer~ || Coming soon!

    Join Date
    Nov 2012
    Posts
    138
    Thanks given
    4
    Thanks received
    8
    Rep Power
    17
    add this
    Code:
     
    if (c.duelStatus >= 5){
    c.sendMessage("You can not use this in duel");
    } else

    Axium Now In Beta!
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2013
    Posts
    148
    Thanks given
    4
    Thanks received
    4
    Rep Power
    16
    Quote Originally Posted by hipster View Post
    add this
    Code:
     
    if (c.duelStatus >= 5){
    c.sendMessage("You can not use this in duel");
    } else
    Nevermind, figured it out.
    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. [PI] 'DFS' Glitching @ Duel arena fix
    By Linus in forum Configuration
    Replies: 24
    Last Post: 04-25-2011, 12:51 AM
  2. [PI] Nullpointer In Duel Arena
    By I'm A Jerk in forum Help
    Replies: 3
    Last Post: 03-23-2011, 02:41 PM
  3. [PI] Veng in Duel Arena [PI]
    By Hellobuddyhowareyou in forum Help
    Replies: 7
    Last Post: 03-20-2011, 01:19 AM
  4. [PI] Veng in duel arena
    By PvpAllDay in forum Help
    Replies: 6
    Last Post: 03-06-2011, 11:07 PM
  5. [PI] Veng in duel arena! [PI]
    By Preedz in forum Help
    Replies: 1
    Last Post: 03-05-2011, 09:57 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
  •