Actually fixed the case when the flair is undecided
This commit is contained in:
parent
2a6d6265d8
commit
9a4677da5b
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
|
3954291735.index
|
||||||
994834796.index
|
994834796.index
|
||||||
3604769962.index
|
3604769962.index
|
||||||
1508644233.index
|
|
||||||
3656756579.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.
|
case "cant-press": //2015.08.08.
|
||||||
finalflair="§r(can't press)§r";
|
finalflair="§r(can't press)§r";
|
||||||
break;
|
break;
|
||||||
case "undecided": //2015.08.09.
|
case "unknown":
|
||||||
p.FlairDecided=false;
|
p.FlairDecided=false;
|
||||||
finalflair="";
|
finalflair="";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
finalflair="";
|
//finalflair="";
|
||||||
break;
|
//break;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if(finalflair.length()==0) //<-- 2015.07.20.
|
/*if(finalflair.length()==0) //<-- 2015.07.20.
|
||||||
return;
|
return;*/
|
||||||
p.Flair=finalflair; //2015.08.08.
|
p.Flair=finalflair; //2015.08.08.
|
||||||
p.UserName=username; //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);
|
System.out.println("Added new flair to "+playername+": "+finalflair);
|
||||||
for(Player player : getServer().getOnlinePlayers()) //<-- 2015.08.08.
|
for(Player player : getServer().getOnlinePlayers()) //<-- 2015.08.08.
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue