Fix enjin listener else bug
This commit is contained in:
parent
17409d0bd2
commit
586a768c7b
@ -7,6 +7,7 @@ import mineplex.core.common.Rank;
|
|||||||
import mineplex.core.common.currency.GlobalCurrency;
|
import mineplex.core.common.currency.GlobalCurrency;
|
||||||
import mineplex.core.common.util.Callback;
|
import mineplex.core.common.util.Callback;
|
||||||
import mineplex.core.common.util.NautHashMap;
|
import mineplex.core.common.util.NautHashMap;
|
||||||
|
import mineplex.core.common.util.UUIDFetcher;
|
||||||
import mineplex.core.donation.DonationManager;
|
import mineplex.core.donation.DonationManager;
|
||||||
import mineplex.core.inventory.InventoryManager;
|
import mineplex.core.inventory.InventoryManager;
|
||||||
import mineplex.core.powerplayclub.PowerPlayClubRepository;
|
import mineplex.core.powerplayclub.PowerPlayClubRepository;
|
||||||
@ -104,38 +105,38 @@ public class Enjin extends MiniPlugin implements CommandExecutor
|
|||||||
{
|
{
|
||||||
// Fails if not in DB and if duplicate.
|
// Fails if not in DB and if duplicate.
|
||||||
uuid = _clientManager.loadUUIDFromDB(name);
|
uuid = _clientManager.loadUUIDFromDB(name);
|
||||||
|
}
|
||||||
|
|
||||||
if (uuid == null)
|
if (uuid == null)
|
||||||
|
{
|
||||||
|
System.out.println("[" + _dateFormat.format(new Date()) + "] ERROR processing " + name + ", no UUID.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
final UUID playerUUID = uuid;
|
||||||
|
|
||||||
|
_cachedUUIDs.put(name, new AbstractMap.SimpleEntry<UUID, Long>(playerUUID, System.currentTimeMillis() + 240000));
|
||||||
|
|
||||||
|
if (!checkForClansPurchase(args, name, client))
|
||||||
|
{
|
||||||
|
if (!checkForBoosterPurchase(args, name, playerUUID, client))
|
||||||
{
|
{
|
||||||
System.out.println("[" + _dateFormat.format(new Date()) + "] ERROR processing " + name + ", no UUID.");
|
if (!checkForCoinPurchase(args, name, playerUUID, client))
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
final UUID playerUUID = uuid;
|
|
||||||
|
|
||||||
_cachedUUIDs.put(name, new AbstractMap.SimpleEntry<UUID, Long>(playerUUID, System.currentTimeMillis() + 240000));
|
|
||||||
|
|
||||||
if (!checkForClansPurchase(args, name, client))
|
|
||||||
{
|
|
||||||
if (!checkForBoosterPurchase(args, name, playerUUID, client))
|
|
||||||
{
|
{
|
||||||
if (!checkForCoinPurchase(args, name, playerUUID, client))
|
if (!checkForRankPurchase(args, name, playerUUID, client))
|
||||||
{
|
{
|
||||||
if (!checkForRankPurchase(args, name, playerUUID, client))
|
if (!checkForPurchase(args, name, client))
|
||||||
{
|
{
|
||||||
if (!checkForPurchase(args, name, client))
|
if (!checkForPowerPlayClub(args, name, playerUUID, client))
|
||||||
{
|
{
|
||||||
if (!checkForPowerPlayClub(args, name, playerUUID, client))
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
|
for (String arg : args)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
sb.append(arg + " ");
|
||||||
|
|
||||||
for (String arg : args)
|
|
||||||
{
|
|
||||||
sb.append(arg + " ");
|
|
||||||
}
|
|
||||||
|
|
||||||
System.out.println("Received Command : " + sb.toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("Received Command : " + sb.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user