Adopted StaffServer project to refactors.
Added default rank package for staff server.
This commit is contained in:
parent
e5189bea40
commit
5816da496d
@ -74,7 +74,7 @@ public class CustomerSupport extends MiniPlugin
|
||||
}
|
||||
|
||||
@Override
|
||||
public void AddCommands()
|
||||
public void addCommands()
|
||||
{
|
||||
addCommand(new checkCommand(this));
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ public class Password extends MiniPlugin
|
||||
}
|
||||
|
||||
@Override
|
||||
public void AddCommands()
|
||||
public void addCommands()
|
||||
{
|
||||
addCommand(new PasswordCommand(this));
|
||||
addCommand(new ChangePasswordCommand(this));
|
||||
@ -45,7 +45,7 @@ public class Password extends MiniPlugin
|
||||
|
||||
event.getPlayer().sendMessage(F.main(getName(), "Please enter the server password within 10 seconds."));
|
||||
|
||||
GetPlugin().getServer().getScheduler().scheduleSyncDelayedTask(GetPlugin(), new Runnable()
|
||||
getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(getPlugin(), new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
|
@ -15,6 +15,7 @@ import mineplex.staffServer.salespackage.command.Sales;
|
||||
import mineplex.staffServer.salespackage.salespackages.AncientChest;
|
||||
import mineplex.staffServer.salespackage.salespackages.ApplyKits;
|
||||
import mineplex.staffServer.salespackage.salespackages.Coins;
|
||||
import mineplex.staffServer.salespackage.salespackages.DefaultRank;
|
||||
import mineplex.staffServer.salespackage.salespackages.FrostLord;
|
||||
import mineplex.staffServer.salespackage.salespackages.GemHunter;
|
||||
import mineplex.staffServer.salespackage.salespackages.LifetimeHero;
|
||||
@ -49,6 +50,7 @@ public class SalesPackageManager extends MiniPlugin
|
||||
AddSalesPackage(new Coins(this, 75000));
|
||||
AddSalesPackage(new MonthlyUltra(this));
|
||||
AddSalesPackage(new MonthlyHero(this));
|
||||
AddSalesPackage(new DefaultRank(this));
|
||||
AddSalesPackage(new LifetimeUltra(this));
|
||||
AddSalesPackage(new LifetimeHero(this));
|
||||
AddSalesPackage(new LifetimeLegend(this));
|
||||
@ -67,7 +69,7 @@ public class SalesPackageManager extends MiniPlugin
|
||||
}
|
||||
|
||||
@Override
|
||||
public void AddCommands()
|
||||
public void addCommands()
|
||||
{
|
||||
addCommand(new DisplayPackageCommand(this));
|
||||
addCommand(new Sales(this));
|
||||
|
@ -26,7 +26,7 @@ public class RankCommand extends CommandBase<SalesPackageManager>
|
||||
|
||||
final Rank rankEnum = Rank.valueOf(rank);
|
||||
|
||||
if (rankEnum == Rank.HERO || rankEnum == Rank.ULTRA || rankEnum == Rank.LEGEND)
|
||||
if (rankEnum == Rank.HERO || rankEnum == Rank.ULTRA || rankEnum == Rank.LEGEND || rankEnum == Rank.ALL)
|
||||
{
|
||||
Plugin.getClientManager().SaveRank(playerName, mineplex.core.common.Rank.valueOf(rank), perm);
|
||||
caller.sendMessage(F.main(Plugin.getName(), playerName + "'s rank has been updated to " + rank + "!"));
|
||||
|
@ -0,0 +1,20 @@
|
||||
package mineplex.staffServer.salespackage.salespackages;
|
||||
|
||||
import mineplex.staffServer.salespackage.SalesPackageManager;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class DefaultRank extends SalesPackageBase
|
||||
{
|
||||
public DefaultRank(SalesPackageManager manager)
|
||||
{
|
||||
super(manager, "Default Rank");
|
||||
}
|
||||
|
||||
public void displayToAgent(Player agent, String playerName)
|
||||
{
|
||||
addButton(agent, "/sales rank " + playerName + " ALL false", " Default Rank.");
|
||||
agent.sendMessage(" ");
|
||||
addBackButton(agent, playerName);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user