Thread: Turn Delta into czar code

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Turn Delta into czar code 
    Banned

    Join Date
    Oct 2008
    Posts
    157
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    could anyone turn this delta into a czar for me?

    Can anyone turn this into a czar code?

    Code:
    if (command.startsWith("yell") && command.length() > 5 && playerRights >= 0) {
                    String titles = "";
    
                    if (playerRights == 0) {
                        titles = "[Player] ";
                    }
                    if (playerRights == 1) {
                        titles = "[Mod] ";
                    }
                    if (playerRights == 2) {
                        titles = "[Admin] ";
                    }
                    if (playerRights == 3) {
                        titles = "[Co-Owner] ";
                    }
    		if (playerName.equalsIgnoreCase("name")) {
                        titles = "[>>[OWNER]<<] ";
                    }
    		if (playerName.equalsIgnoreCase("erfg")) {
                        titles = "[>>[Ex-Mod]<<] ";
                    }
                    yell(titles + "" + playerName + ": "
                            + command.substring(5));
            }
    }
    Reply With Quote  
     

  2. #2  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    one second

    Code:
    if (command.startsWith("yell")) {
    PlayerHandler.messageToAll = ""+playerRights+""+playerName + ": " + command.substring(5);
    }
    If, your server is like mine your player rights should display as their given name.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Oct 2008
    Posts
    157
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Alright, thanks
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2008
    Posts
    157
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    im using a figmentscape source. can you just turn the code i have into a czar?
    Reply With Quote  
     

  5. #5  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    turn into you mean *Convert*
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Which figment?
    1, 2, 3, 4, 4.5, F2P?
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2008
    Posts
    157
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    v4.5
    Reply With Quote  
     

  8. #8  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    Code:
    if (command.startsWith("yell") && playerRights >= 0) {
                    String titles = "";
    
                    if (playerRights == 0) {
                        titles = "[Player] ";
                    }
                    if (playerRights == 1) {
                        titles = "[Mod] ";
                    }
                    if (playerRights == 2) {
                        titles = "[Admin] ";
                    }
                    if (playerRights == 3) {
                        titles = "[Owner] ";
                    }
                    yell(titles + "" + playerName + ": "
                            + command.substring(5));
            }
    }
    Should work, you can't use player names for identifying the owner on figmentscape I don't think
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Oct 2008
    Posts
    157
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    gave me 100 errors

    Edit: Lowerd it to one.it said something about this line
    Code:
    yell(titles + "" + playerName + ": "
    Reply With Quote  
     

  10. #10  
    Rigged
    Guest
    Code:
    if (command.startsWith("yell") && playerRights >= 0) {
                    String titles = "";
    
                    if (playerRights == 0) {
                        titles = "[Player] ";
                    }
                    if (playerRights == 1) {
                        titles = "[Mod] ";
                    }
                    if (playerRights == 2) {
                        titles = "[Admin] ";
                    }
                    if (playerRights == 3) {
                        titles = "[Owner] ";
                    }
                    yell(titles + "" + playerName + ": "+ command.substring(5));
            }
    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

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