Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 5:03:22 GMT
Well, I tried to make my self have an owner tag.
yes I added OWNER in TFM_Util but that doesn't work -_- is it something i'm doing wrong?
if (TFM_Util.OWNER.contains(player.getName())) { player.setPlayerListName(ChatColor.BLUE + player.getName()); TFM_PlayerData.getPlayerData(player).setTag("&8[&9Owner&8]"); } And heres the thing in TFM_Util
public static final List<String> OWNER = Arrays.asList("packeretteswan");
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 5:12:26 GMT
You don't need the owner array list unless you're gonna have multiple owners, you could change it to this:
if (player.getName().contains("packeretteswan")) { player.setPlayerListName(ChatColor.BLUE + player.getName()); TFM_PlayerData.getPlayerData(player).setTag("&8[&9Owner&8]"); }
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 6:00:12 GMT
Ok thanks
|
|
Deleted
Deleted Member
Posts: 0
|
Java Help
May 24, 2014 8:25:22 GMT
via mobile
Post by Deleted on May 24, 2014 8:25:22 GMT
There is really something wrong. That didn't work -_-
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 8:26:13 GMT
Do you have any errors to show? And are you sure that you've entered your name properly (due to the way you've done it, it's case-sensitive)?
|
|
|
Post by Robo_Lord (Xoizchyk) on May 24, 2014 8:29:18 GMT
public static final List<String> OWNER = Arrays.asList("packeretteswan"); Change it to "OWNERS" Instead of "OWNER"
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 8:34:17 GMT
public static final List<String> OWNER = Arrays.asList("packeretteswan"); Change it to "OWNERS" Instead of "OWNER" That doesn't make any difference whatsoever to the problem.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 11:09:47 GMT
Wouldn't you need to do:
public static final List<String> OWNER = new ArrayList<>(Arrays.asList("packeretteswan"));
|
|
Wild1145
Club 4000 Member
Inactive Player & Inactive Senior Admin
Posts: 10,414
| Likes: 9,680
|
Post by Wild1145 on May 24, 2014 12:11:43 GMT
Or you could just do the sensible thing and run the latest version of TFM that has the option to set owner and MOTD in config??...
|
|
|
Java Help
May 24, 2014 14:16:56 GMT
via mobile
Post by Robo_Lord (Xoizchyk) on May 24, 2014 14:16:56 GMT
Or you could just do the sensible thing and run the latest version of TFM that has the option to set owner and MOTD in config??... But he wants to be [Owner] In chat and tab
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 24, 2014 15:16:57 GMT
Wouldn't you need to do: public static final List<String> OWNER = new ArrayList<>(Arrays.asList("packeretteswan")); Well, you could. But the way he's done it is perfectly fine.
|
|
Wild1145
Club 4000 Member
Inactive Player & Inactive Senior Admin
Posts: 10,414
| Likes: 9,680
|
Post by Wild1145 on May 24, 2014 15:58:05 GMT
Or you could just do the sensible thing and run the latest version of TFM that has the option to set owner and MOTD in config??... But he wants to be [Owner] In chat and tab Your point being what? Thats the point of the config file...
|
|
|
Java Help
May 24, 2014 16:28:17 GMT
via mobile
Post by Robo_Lord (Xoizchyk) on May 24, 2014 16:28:17 GMT
But he wants to be [Owner] In chat and tab Your point being what? Thats the point of the config file... You need to edit it to do that
|
|
Wild1145
Club 4000 Member
Inactive Player & Inactive Senior Admin
Posts: 10,414
| Likes: 9,680
|
Post by Wild1145 on May 24, 2014 16:52:40 GMT
Your point being what? Thats the point of the config file... You need to edit it to do that No, the entire point of darth changing this is so that you wouldnt need to change it. You can get owner wherever it normally is on TF for Mark by just changing the config. You should not change anything else.
|
|
Deleted
Deleted Member
Posts: 0
|
Java Help
May 24, 2014 17:47:31 GMT
via mobile
Post by Deleted on May 24, 2014 17:47:31 GMT
Do you have any errors to show? And are you sure that you've entered your name properly (due to the way you've done it, it's case-sensitive)? Yup
|
|