Thread: Custom titles 718 how to use i have the code

Results 1 to 6 of 6
  1. #1 Custom titles 718 how to use i have the code 
    Registered Member Icantcode911's Avatar
    Join Date
    Oct 2012
    Posts
    122
    Thanks given
    29
    Thanks received
    2
    Rep Power
    4
    How to make a command for the custom title? I added this with no errors.

    Code:
    /**
    	 * Custom title's
    	 */
    
    	private String i;
    	private boolean hasCustomTitle;
    
    	/**
    	 * Set's the title of a player using the parameters AcxxX
    	 * 
    	 * Param AcxxX
    	 *            - The String of the title
    	 */
    	public void setCustomTitle(String AcxxX) {
    		this.i = getTitleColor() + "" + AcxxX + "</col>";
    		this.hasCustomTitle = true;
    	}
    
    	public String hex;
    
    	public void setTitleColor(String color) {
    		if (color.length() != 6) {
    			return;
    		} else if (color.contains("_")) {
    			return;
    		} else if (Utils.containsInvalidCharacter(color)) {
    			return;
    		}
    		this.hex = "<col=" + color + ">";
    
    	}
    
    	public String getTitleColor() {
    		// Doesn't have a custom color
    			return hex == null ? "<col=C12006>" : hex;
    	}
    
    	public String getCustomTitle() {
    		return hasCustomTitle ? i : null;
    	}
    
    	public boolean hasCustomTitle() {
    		return hasCustomTitle;
    	}
    
    	public void resetCustomTitle() {
    		this.i = null;
    		this.hasCustomTitle = false;
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member TwistedTorva's Avatar
    Join Date
    Dec 2012
    Posts
    186
    Thanks given
    14
    Thanks received
    6
    Rep Power
    0
    and ur problem with it is?
    Reply With Quote  
     

  3. #3  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    28
    Posts
    1,715
    Thanks given
    109
    Thanks received
    359
    Rep Power
    66
    Make it into a command? :/
    Reply With Quote  
     

  4. #4  
    Registered Member Icantcode911's Avatar
    Join Date
    Oct 2012
    Posts
    122
    Thanks given
    29
    Thanks received
    2
    Rep Power
    4
    Quote Originally Posted by Puretyler3 View Post
    and ur problem with it is?
    How to make a command to initialize it so u can set a custom title?
    Reply With Quote  
     

  5. #5  
    Registered Member TwistedTorva's Avatar
    Join Date
    Dec 2012
    Posts
    186
    Thanks given
    14
    Thanks received
    6
    Rep Power
    0
    well if your going to do that I suggest you make two one for coulour and one for title but it would be something likeI know the basics cant code offhand sorry) but [0].Ifplayerrights.equals (if you want it for donor or what) )
    setCustomTitle. something along the lines of that. sorry if it wasnt much help.
    Reply With Quote  
     

  6. #6  
    Registered Member TwistedTorva's Avatar
    Join Date
    Dec 2012
    Posts
    186
    Thanks given
    14
    Thanks received
    6
    Rep Power
    0
    tell me where you entered the title coding and ill look in mine try to hurry got to leave in 15
    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. 718 Custom Titles & Colors
    By Taylor Moon in forum Snippets
    Replies: 24
    Last Post: 10-02-2013, 12:31 PM
  2. 718/732 Loyalty Titles issue
    By FateofSF in forum Help
    Replies: 14
    Last Post: 12-18-2012, 10:30 PM
  3. [req]custom loyalty titles 718
    By Cocaine in forum Requests
    Replies: 14
    Last Post: 08-09-2012, 09:17 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
  •