Fix message order

This commit is contained in:
games647 committed 2016-05-15 17:33:21 +02:00
1 parent a723b2ddd3
commit 8f3920fa99
6 files changed
+11 -16

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
<parent>
<groupId>com.github.games647</groupId>
<artifactId>fastlogin</artifactId>
<version>1.2</version>
<version>1.2.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -159,6 +159,9 @@ public class PlayerConnectionListener implements Listener {
playerProfile.setPremium(true);
//todo: set uuid
plugin.getStorage().save(playerProfile);
TextComponent textComponent = new TextComponent("Added to the list of premium players");
textComponent.setColor(ChatColor.DARK_GREEN);
forPlayer.sendMessage(textComponent);
}
});
} else if ("OFF".equals(subchannel)) {
@@ -178,9 +181,8 @@ public class PlayerConnectionListener implements Listener {
playerProfile.setPremium(false);
playerProfile.setUuid(null);
//todo: set uuid
plugin.getStorage().save(playerProfile);
TextComponent textComponent = new TextComponent("Added to the list of premium players");
TextComponent textComponent = new TextComponent("Removed to the list of premium players");
textComponent.setColor(ChatColor.DARK_GREEN);
forPlayer.sendMessage(textComponent);
}
@@ -194,9 +196,6 @@ public class PlayerConnectionListener implements Listener {
//we override this in the loginevent
// playerProfile.setUuid(forPlayer.getUniqueId());
plugin.getStorage().save(playerProfile);
TextComponent textComponent = new TextComponent("Removed to the list of premium players");
textComponent.setColor(ChatColor.DARK_GREEN);
forPlayer.sendMessage(textComponent);
}
}
}