Actually fixed the case when the flair is undecided
This commit is contained in:
parent
2a6d6265d8
commit
9a4677da5b
12 changed files with 8 additions and 6 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -22,5 +22,4 @@ INDEX VERSION 1.126+D:\Z - Norbi cucca\0 Projektek\TheButtonMCAutoFlairProto\Spi
|
|||
3954291735.index
|
||||
994834796.index
|
||||
3604769962.index
|
||||
1508644233.index
|
||||
3656756579.index
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -170,18 +170,21 @@ public class PluginMain extends JavaPlugin
|
|||
case "cant-press": //2015.08.08.
|
||||
finalflair="§r(can't press)§r";
|
||||
break;
|
||||
case "undecided": //2015.08.09.
|
||||
case "unknown":
|
||||
p.FlairDecided=false;
|
||||
finalflair="";
|
||||
break;
|
||||
default:
|
||||
finalflair="";
|
||||
break;
|
||||
//finalflair="";
|
||||
//break;
|
||||
return;
|
||||
}
|
||||
if(finalflair.length()==0) //<-- 2015.07.20.
|
||||
return;
|
||||
/*if(finalflair.length()==0) //<-- 2015.07.20.
|
||||
return;*/
|
||||
p.Flair=finalflair; //2015.08.08.
|
||||
p.UserName=username; //2015.08.08.
|
||||
if(finalflair.length()==0) //Just for the message
|
||||
finalflair="undecided";
|
||||
System.out.println("Added new flair to "+playername+": "+finalflair);
|
||||
for(Player player : getServer().getOnlinePlayers()) //<-- 2015.08.08.
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue