Change display menu for CUST-1 server to reflect recent updates
This commit is contained in:
parent
e4c94f5421
commit
2b74ec00b4
@ -119,7 +119,7 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
|
|||||||
caller.sendMessage(C.cDGreen + C.Strike + "=============================================");
|
caller.sendMessage(C.cDGreen + C.Strike + "=============================================");
|
||||||
caller.sendMessage(C.cBlue + "Name: " + C.cYellow + playerName);
|
caller.sendMessage(C.cBlue + "Name: " + C.cYellow + playerName);
|
||||||
caller.sendMessage(C.cBlue + "Rank: " + C.cYellow + (client.GetRank() == null ? C.cRed + "Error rank null!" : (client.GetRank().Name.isEmpty() ? "Regular" : client.GetRank().Name)));
|
caller.sendMessage(C.cBlue + "Rank: " + C.cYellow + (client.GetRank() == null ? C.cRed + "Error rank null!" : (client.GetRank().Name.isEmpty() ? "Regular" : client.GetRank().Name)));
|
||||||
caller.sendMessage(C.cBlue + "Coins: " + C.cYellow + donor.getCoins());
|
caller.sendMessage(C.cBlue + "Shards: " + C.cYellow + donor.getCoins());
|
||||||
caller.sendMessage(C.cBlue + "Gems: " + C.cYellow + donor.GetGems());
|
caller.sendMessage(C.cBlue + "Gems: " + C.cYellow + donor.GetGems());
|
||||||
|
|
||||||
int enjinCoinsReceived = 0;
|
int enjinCoinsReceived = 0;
|
||||||
@ -234,7 +234,7 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Strutt20 asked me to remove some stuff from the menu
|
// Strutt20 asked me to remove some stuff from the menu
|
||||||
caller.sendMessage(C.cBlue + "Enjin Coin Total Received: " + C.cYellow + enjinCoinsReceived);
|
caller.sendMessage(C.cBlue + "Enjin Shard Total Received: " + C.cYellow + enjinCoinsReceived);
|
||||||
caller.sendMessage(C.cBlue + "Old Chests Received: " + C.cYellow + oldChestsReceived);
|
caller.sendMessage(C.cBlue + "Old Chests Received: " + C.cYellow + oldChestsReceived);
|
||||||
caller.sendMessage(C.cBlue + "Ancient Chests Received: " + C.cYellow + ancientChestsReceived);
|
caller.sendMessage(C.cBlue + "Ancient Chests Received: " + C.cYellow + ancientChestsReceived);
|
||||||
caller.sendMessage(C.cBlue + "Mythical Chests Received: " + C.cYellow + mythicalChestsReceived);
|
caller.sendMessage(C.cBlue + "Mythical Chests Received: " + C.cYellow + mythicalChestsReceived);
|
||||||
|
@ -94,7 +94,7 @@ public class SalesPackageManager extends MiniPlugin
|
|||||||
|
|
||||||
public void displaySalesPackages(Player caller, String playerName)
|
public void displaySalesPackages(Player caller, String playerName)
|
||||||
{
|
{
|
||||||
JsonMessage coinBuilder = new JsonMessage("Coins : ").color("blue");
|
JsonMessage coinBuilder = new JsonMessage("Shards : ").color("blue");
|
||||||
JsonMessage packageBuilder = new JsonMessage("Rank Packages : ").color("blue");
|
JsonMessage packageBuilder = new JsonMessage("Rank Packages : ").color("blue");
|
||||||
JsonMessage chestBuilder = new JsonMessage("Chest Packages : ").color("blue");
|
JsonMessage chestBuilder = new JsonMessage("Chest Packages : ").color("blue");
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ public class SalesPackageManager extends MiniPlugin
|
|||||||
{
|
{
|
||||||
coinBuilder = coinBuilder.extra("[").color("gray").extra(salesPackage.getName()).color("green").click("run_command", "/display " + playerName + " " + salesPackage.getName()).extra("] ").color("gray");
|
coinBuilder = coinBuilder.extra("[").color("gray").extra(salesPackage.getName()).color("green").click("run_command", "/display " + playerName + " " + salesPackage.getName()).extra("] ").color("gray");
|
||||||
}
|
}
|
||||||
else if (salesPackage instanceof MythicalChest || salesPackage instanceof AncientChest || salesPackage instanceof OldChest || salesPackage instanceof IlluminatedChest)
|
else if (salesPackage instanceof MythicalChest || salesPackage instanceof AncientChest || salesPackage instanceof OldChest || salesPackage instanceof IlluminatedChest || salesPackage instanceof FreedomChest)
|
||||||
{
|
{
|
||||||
chestBuilder = chestBuilder.extra("[").color("gray").extra(salesPackage.getName()).color("green").click("run_command", "/display " + playerName + " " + salesPackage.getName()).extra("] ").color("gray");
|
chestBuilder = chestBuilder.extra("[").color("gray").extra(salesPackage.getName()).color("green").click("run_command", "/display " + playerName + " " + salesPackage.getName()).extra("] ").color("gray");
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ public class CoinCommand extends CommandBase<SalesPackageManager>
|
|||||||
{
|
{
|
||||||
public CoinCommand(SalesPackageManager plugin)
|
public CoinCommand(SalesPackageManager plugin)
|
||||||
{
|
{
|
||||||
super(plugin, Rank.MODERATOR, "coin");
|
super(plugin, Rank.MODERATOR, "coin", "shard", "shards");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -43,11 +43,11 @@ public class CoinCommand extends CommandBase<SalesPackageManager>
|
|||||||
{
|
{
|
||||||
if (completed)
|
if (completed)
|
||||||
{
|
{
|
||||||
caller.sendMessage(F.main(Plugin.getName(), "Added " + amount + " coins to " + playerName + "'s account!"));
|
caller.sendMessage(F.main(Plugin.getName(), "Added " + amount + " shards to " + playerName + "'s account!"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
UtilPlayer.message(caller, F.main(Plugin.getName(), "There was an error giving " + F.elem(amount + "Coins") + " to " + F.name(playerName) + "."));
|
UtilPlayer.message(caller, F.main(Plugin.getName(), "There was an error giving " + F.elem(amount + "Shards") + " to " + F.name(playerName) + "."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, caller.getName(), playerName, client.getAccountId(), amount);
|
}, caller.getName(), playerName, client.getAccountId(), amount);
|
||||||
|
@ -10,13 +10,13 @@ public class Coins extends SalesPackageBase
|
|||||||
|
|
||||||
public Coins(SalesPackageManager manager, int amount)
|
public Coins(SalesPackageManager manager, int amount)
|
||||||
{
|
{
|
||||||
super(manager, amount + " Coins");
|
super(manager, amount + " Shards");
|
||||||
|
|
||||||
_amount = amount;
|
_amount = amount;
|
||||||
}
|
}
|
||||||
public void displayToAgent(Player agent, String playerName)
|
public void displayToAgent(Player agent, String playerName)
|
||||||
{
|
{
|
||||||
addButton(agent, "/sales coin " + playerName + " " + _amount, _amount + " Coins.");
|
addButton(agent, "/sales coin " + playerName + " " + _amount, _amount + " Shards.");
|
||||||
agent.sendMessage(" ");
|
agent.sendMessage(" ");
|
||||||
addBackButton(agent, playerName);
|
addBackButton(agent, playerName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user