Thread: [PI 317] Simple Adding new player announcement

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 [PI 317] Simple Adding new player announcement 
    Donator

    Join Date
    Mar 2012
    Posts
    179
    Thanks given
    16
    Thanks received
    3
    Rep Power
    9
    I know this is very basic and that there are better ways to do this everyone should know how to do this

    Heres How to do it

    Go into Client.java

    Search
    Code:
    if (addStarter)
    Add Below
    Code:
    sendMessage("<shad=200000000>[NEW PLAYER]" +Misc.optimizeText(playerName)+" is new to Server_Name, Make them feel Welcomed. ");


    Credits: 100% to who ever
    Reply With Quote  
     

  2. #2  
    強い者は生き残る
    Ashpire's Avatar
    Join Date
    Mar 2012
    Age
    27
    Posts
    2,721
    Thanks given
    914
    Thanks received
    1,897
    Rep Power
    2231
    Someone will find this useful I bet, .
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    Quote Originally Posted by Play Boy View Post
    Someone will find this useful I bet, .
    fuck off
    Reply With Quote  
     

  5. Thankful users:


  6. #4  
    Donator

    Join Date
    Mar 2012
    Posts
    179
    Thanks given
    16
    Thanks received
    3
    Rep Power
    9
    Quote Originally Posted by Zion View Post
    fuck off
    if you have a problem then settle it at the door not here
    Reply With Quote  
     

  7. #5  
    強い者は生き残る
    Ashpire's Avatar
    Join Date
    Mar 2012
    Age
    27
    Posts
    2,721
    Thanks given
    914
    Thanks received
    1,897
    Rep Power
    2231
    Quote Originally Posted by NoahLH View Post
    if you have a problem then settle it at the door not here
    I know he is such a pleb. Anger problems.
    Attached image
    Reply With Quote  
     

  8. #6  
    Infuse Founder
    Matt J's Avatar
    Join Date
    Dec 2015
    Age
    25
    Posts
    81
    Thanks given
    4
    Thanks received
    23
    Rep Power
    16
    > 2016
    > This tutorial
    Reply With Quote  
     

  9. #7  
    Registered Member zephazez's Avatar
    Join Date
    Jul 2015
    Posts
    125
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Wouldnt this only be seen by the new player logging in?
    Reply With Quote  
     

  10. #8  
    Registered Member risgaard's Avatar
    Join Date
    Jul 2013
    Posts
    648
    Thanks given
    12
    Thanks received
    16
    Rep Power
    13
    Quote Originally Posted by magez View Post
    Wouldnt this only be seen by the new player logging in?
    this will be given to everyone who gets a starter package, so yes new players i guesse
    my grammar. aint pefect. but atleast you understand me

    did i help you ?
    i am not asking for rep but you can atleast say thanks
    Reply With Quote  
     

  11. #9  
    Extreme Donator

    Kiana's Avatar
    Join Date
    May 2015
    Posts
    1,050
    Thanks given
    147
    Thanks received
    187
    Rep Power
    223
    This would come in good use if your starting from scratch Thanks
    Reply With Quote  
     

  12. #10  
    Registered Member MattTM's Avatar
    Join Date
    Jan 2016
    Posts
    28
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Code:
    sendMessage("<shad=200000000>[NEW PLAYER]" +Misc.optimizeText(playerName)+" is new to Server_Name, Make them feel Welcomed. ");
    Should go under the addStarter method in PlayerAssistant.java

    and should look more like this..

    Code:
    c.sendGlobalMessage("<shad=200000000>[NEW PLAYER]" +Misc.optimizeText(c.playerName)+" is new to Server_Name, Make them feel Welcomed. ");
    Code:
      public void sendGlobalMessage(String message){
              for (Player client : PlayerHandler.players) {
                      if (client != null) {
                              ((Client) client).sendMessage(message);
                      }
              }
      }
    ^ Goes into Client.java
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 8
    Last Post: 08-24-2014, 06:41 AM
  2. [PI] Adding New Player Rights & Crowns [PI]
    By tr1k in forum Tutorials
    Replies: 25
    Last Post: 06-03-2013, 05:47 PM
  3. Adding New Player Rights and Crown
    By Extrocity in forum Help
    Replies: 2
    Last Post: 05-23-2012, 03:52 AM
  4. Replies: 3
    Last Post: 05-26-2011, 04:08 AM
  5. Adding New Player Ints
    By Patrity in forum Help
    Replies: 2
    Last Post: 06-04-2010, 04:41 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
  •