Thread: [667] Yell System

Results 1 to 3 of 3
  1. #1 [667] Yell System 
    Donator

    Unholy_'s Avatar
    Join Date
    Aug 2011
    Age
    27
    Posts
    418
    Thanks given
    135
    Thanks received
    50
    Rep Power
    143
    Code isn't picking up the Supporter Rights, which "isSupporter()" and "player.getRights == 7"
    #shittyyellsystem





    Code:
    	public static String getInfo(Player player, int i) {
    		String crown = null;
    		String titleInfo= null;
    		String color= null;
    		for (RightsManager rights : RightsManager.values()) {   
    			if (rights.getPlayerRights() == i) {
    				if (player.isDonator() && !player.i***tremeDonator() && player.getRights() == 0) {
    					crown = DONATOR.getCrown();
    					titleInfo = DONATOR.getTitle();
    					color = DONATOR.getColor();
    				} else if (player.i***tremeDonator() && player.getRights() == 0) {
    					crown = EXTREME.getCrown();
    					titleInfo = EXTREME.getTitle();
    					color = EXTREME.getColor();
    				} else if (player.getRights() == 7) {
    					crown = SUPPORTER.getCrown();
    					titleInfo = SUPPORTER.getTitle();
    					color = SUPPORTER.getColor();
    				} else if (player.getRights() == 1) {
    					crown = MODERATOR.getCrown();
    					titleInfo = MODERATOR.getTitle();
    					color = MODERATOR.getColor();
    				} else if (player.getRights() == 2) {
    					crown = ADMIN.getCrown();
    					titleInfo = ADMIN.getTitle();
    					color = ADMIN.getColor();
    				} else if (player.getRights() == 0 && !player.isSupporter() && !player.isDonator() && !player.i***tremeDonator() && !player.isGraphicDesigner()) {
    					crown = REGULAR.getCrown();
    					titleInfo = REGULAR.getTitle();
    					color = REGULAR.getColor();
    				}
    			}
    		}
    		return ""+color+"["+titleInfo+"]</col> "+crown+""+player.getDisplayName()+""+color+"";
    	}
    }



    Quote Originally Posted by lighter xd View Post
    i didnt hear baout a keylog but im dling on my shit pc and my dads a police officer and get get swat to track his ip if its a keylog
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2011
    Posts
    189
    Thanks given
    6
    Thanks received
    29
    Rep Power
    52
    Why don't you use a switch statement? And the player must not have a rights of 7.
    Reply With Quote  
     

  3. #3  
    Donator

    Unholy_'s Avatar
    Join Date
    Aug 2011
    Age
    27
    Posts
    418
    Thanks given
    135
    Thanks received
    50
    Rep Power
    143
    ^ Fixed, thanks. Rewrote it with a switch and it decided to work.



    Quote Originally Posted by lighter xd View Post
    i didnt hear baout a keylog but im dling on my shit pc and my dads a police officer and get get swat to track his ip if its a keylog
    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. Replies: 50
    Last Post: 10-07-2015, 04:22 AM
  2. [PI] Customizable Yell Tags > Better Yell System
    By I try too hard in forum Help
    Replies: 6
    Last Post: 08-04-2011, 03:59 PM
  3. [PI] yell system help.
    By divinescape99 in forum Help
    Replies: 4
    Last Post: 05-27-2011, 10:59 PM
  4. Yell System not Working?
    By Noosy in forum Help
    Replies: 0
    Last Post: 12-22-2009, 07:29 AM
  5. How Can i Make a Yell System
    By Peach in forum Help
    Replies: 26
    Last Post: 11-18-2009, 02:15 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
  •