Actually fixed the case when the flair is undecided

This commit is contained in:
Norbi Peti 2015-08-10 21:09:50 +02:00
parent 2a6d6265d8
commit 9a4677da5b
12 changed files with 8 additions and 6 deletions

View file

@ -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.

View file

@ -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.
{ {