Fixed town and nation chat...

This commit is contained in:
Norbi Peti 2015-12-30 13:46:21 +01:00
parent 93a4521293
commit 42fff2fbca
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -304,7 +304,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
for (Player p : PluginMain.GetPlayers()) {
try {
if (PluginMain.Instance.TU.getResidentMap()
.get(p.getName()).getTown().equals(town))
.get(p.getName()).getTown().getName().equals(town.getName()))
obj.getScore(p.getName()).setScore(index);
} catch (Exception e) {
}
@ -364,7 +364,7 @@ public class PlayerListener implements Listener { // 2015.07.16.
for (Player p : PluginMain.GetPlayers()) {
try {
if (PluginMain.Instance.TU.getResidentMap()
.get(p.getName()).getTown().getNation().equals(nation))
.get(p.getName()).getTown().getNation().getName().equals(nation.getName()))
obj.getScore(p.getName()).setScore(index);
} catch (Exception e) {
}