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 6bed164aa1
commit e5d18e9278
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
994834796.index
3604769962.index
1508644233.index
3656756579.index

Binary file not shown.

View file

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