Thread: Yell command on Dynasty?

Results 1 to 3 of 3
  1. #1 Yell command on Dynasty? 
    Registered Member
    Darna's Avatar
    Join Date
    Jan 2008
    Age
    31
    Posts
    488
    Thanks given
    11
    Thanks received
    4
    Rep Power
    163
    Is there any tutorial to shows how to add yells command on dynasty??
    Reply With Quote  
     

  2. #2  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    To my knowledge there is already one in dynasty, atleast in the version i got. Search for "yell" in the commandHandler.
    Hope you find it.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Core's Avatar
    Join Date
    Sep 2007
    Posts
    4,194
    Thanks given
    11
    Thanks received
    393
    Rep Power
    1985
    wow are you serious?
    Code:
    if(command.equals("yell")) {
        String yelled = command.substring(5);
        for (Player p : handler.players) {
            if (p != null) {
                p.sendMessage(playerName+": "+yelled);
            }
        }
    }
    Sorry about convetions if it looks a bit off its because I had to use spaces I wrote it write here
    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

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