fixes important bug, fixed a scary typo!

This commit is contained in:
fooify 2016-01-19 18:52:54 -08:00
parent 63897b9b54
commit 376f719c26
2 changed files with 9 additions and 2 deletions

View File

@ -466,6 +466,13 @@ public class CoreClientManager extends MiniPlugin
if (event.getReason().contains("You logged in from another location"))
{
_duplicateLoginGlitchPreventionList.add(event.getPlayer().getName());
Bukkit.getScheduler().runTask(_plugin, new Runnable() {
public void run() {
if(!_clientList.containsKey(event.getPlayer().getName())) return;
Player p = _clientList.get(event.getPlayer().getName()).GetPlayer();
p.kickPlayer("You're already logged in.");
}
});
}
}
@ -473,7 +480,7 @@ public class CoreClientManager extends MiniPlugin
public void Quit(PlayerQuitEvent event)
{
// When an account is logged in to this server and the same account name logs in
// Then it Fires events in this order (original, new for accounts)
// Then it Fires events in this order (original, new for acco unts)
// AsyncPreLogin -> new
// PlayerLogin -> new
// PlayerKick -> old

View File

@ -160,7 +160,7 @@ public class Menu extends ShopPageBase<CosmeticManager, CosmeticShop>
if (enabled.containsKey(type)) addGlow(deathSlot);
type = GadgetType.Item;
lore = getLore(ownedCount.get(type), maxCount.get(type), "All sorts of zaney contraptions to use on your friends and foes.", "Usable in Lobbies", enabled.get(type));
lore = getLore(ownedCount.get(type), maxCount.get(type), "All sorts of zany contraptions to use on your friends and foes.", "Usable in Lobbies", enabled.get(type));
addButton(gadgetSlot, new ShopItem(Material.MELON_BLOCK, "Gadgets", lore, 1, false), new OpenGadgets(this, enabled.get(type)));
if (enabled.containsKey(type)) addGlow(gadgetSlot);