Add toLowerCase() to Pick up notifications.

master_event
sigonasr2 11 years ago
parent bfeb976e89
commit 9819405e9d
  1. 2
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -6977,7 +6977,7 @@ implements Listener
@EventHandler @EventHandler
public void onPlayerPickup(PlayerPickupItemEvent e) { public void onPlayerPickup(PlayerPickupItemEvent e) {
if (this.plugin.getAccountsConfig().getBoolean(e.getPlayer().getName()+".settings.notify1")) { if (this.plugin.getAccountsConfig().getBoolean(e.getPlayer().getName().toLowerCase()+".settings.notify1")) {
Player p = e.getPlayer(); Player p = e.getPlayer();
String temp = e.getItem().getItemStack().getType().name().replace("_", " "); String temp = e.getItem().getItemStack().getType().name().replace("_", " ");
char[] mod = temp.toCharArray(); char[] mod = temp.toCharArray();

Loading…
Cancel
Save