Updated to latest CompositeCommand API

Updated POM to use latest BSB version.
This commit is contained in:
tastybento 2018-07-18 22:58:43 -07:00
parent 08844a8e18
commit 181cb25357
5 changed files with 10 additions and 10 deletions

View File

@ -48,7 +48,7 @@
<dependency> <dependency>
<groupId>us.tastybento</groupId> <groupId>us.tastybento</groupId>
<artifactId>bskyblock</artifactId> <artifactId>bskyblock</artifactId>
<version>alpha-0.0.1</version> <version>LATEST</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>bskyblock.addon</groupId> <groupId>bskyblock.addon</groupId>

View File

@ -19,7 +19,7 @@ public class AdminLevel extends CompositeCommand {
} }
@Override @Override
public boolean execute(User user, List<String> args) { public boolean execute(User user, String label, List<String> args) {
if (args.size() == 2) { if (args.size() == 2) {
// Get world // Get world
World world = null; World world = null;

View File

@ -21,7 +21,7 @@ public class AdminTop extends CompositeCommand {
} }
@Override @Override
public boolean execute(User user, List<String> args) { public boolean execute(User user, String label, List<String> args) {
// Get world // Get world
World world = null; World world = null;
if (args.isEmpty()) { if (args.isEmpty()) {

View File

@ -17,7 +17,7 @@ public class IslandLevel extends CompositeCommand {
} }
@Override @Override
public boolean execute(User user, List<String> args) { public boolean execute(User user, String label, List<String> args) {
if (!args.isEmpty()) { if (!args.isEmpty()) {
// Asking for another player's level? // Asking for another player's level?
// Convert name to a UUID // Convert name to a UUID

View File

@ -16,7 +16,7 @@ public class IslandTop extends CompositeCommand {
} }
@Override @Override
public boolean execute(User user, List<String> list) { public boolean execute(User user, String label, List<String> list) {
plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix()); plugin.getTopTen().getGUI(getWorld(), user, getPermissionPrefix());
return true; return true;
} }