mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2025-02-20 05:21:22 +01:00
Support 1.16.
This commit is contained in:
parent
98e753cd59
commit
74dfdd74d6
2
pom.xml
2
pom.xml
@ -93,7 +93,7 @@
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>1.15</version>
|
||||
<version>1.16.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.songoda</groupId>
|
||||
|
@ -96,7 +96,7 @@ public class EpicFurnaces extends SongodaPlugin {
|
||||
|
||||
// Register commands
|
||||
this.commandManager = new CommandManager(this);
|
||||
this.commandManager.addCommand(new CommandEpicFurnaces(this))
|
||||
this.commandManager.addMainCommand("ef")
|
||||
.addSubCommands(
|
||||
new CommandBoost(this),
|
||||
new CommandGive(this),
|
||||
|
@ -79,7 +79,7 @@ public class CommandBoost extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ef boost <player> <amount> [duration]";
|
||||
return "boost <player> <amount> [duration]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,54 +0,0 @@
|
||||
package com.songoda.epicfurnaces.commands;
|
||||
|
||||
import com.songoda.core.commands.AbstractCommand;
|
||||
import com.songoda.epicfurnaces.EpicFurnaces;
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CommandEpicFurnaces extends AbstractCommand {
|
||||
|
||||
final EpicFurnaces plugin;
|
||||
|
||||
public CommandEpicFurnaces(EpicFurnaces plugin) {
|
||||
super(false, "EpicFurnaces");
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ReturnType runCommand(CommandSender sender, String... args) {
|
||||
sender.sendMessage("");
|
||||
plugin.getLocale().newMessage("&7Version " + plugin.getDescription().getVersion()
|
||||
+ " Created with <3 by &5&l&oSongoda").sendPrefixedMessage(sender);
|
||||
|
||||
for (AbstractCommand command : plugin.getCommandManager().getAllCommands()) {
|
||||
if (command.getPermissionNode() == null || sender.hasPermission(command.getPermissionNode())) {
|
||||
sender.sendMessage(ChatColor.translateAlternateColorCodes('&', "&8 - &a" + command.getSyntax() + "&7 - " + command.getDescription()));
|
||||
}
|
||||
}
|
||||
sender.sendMessage("");
|
||||
|
||||
return ReturnType.SUCCESS;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected List<String> onTab(CommandSender commandSender, String... strings) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPermissionNode() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/EpicFurnaces";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return "Displays this page.";
|
||||
}
|
||||
}
|
@ -66,7 +66,7 @@ public class CommandGive extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ef give [player] <level>";
|
||||
return "give [player] <level>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -34,7 +34,7 @@ public class CommandReload extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ef reload";
|
||||
return "çreload";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -73,7 +73,7 @@ public class CommandRemote extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ef remote [nickname]";
|
||||
return "remote [nickname]";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -38,7 +38,7 @@ public class CommandSettings extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ef settings";
|
||||
return "settings";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -6,8 +6,8 @@ main: com.songoda.epicfurnaces.EpicFurnaces
|
||||
author: songoda
|
||||
api-version: 1.13
|
||||
commands:
|
||||
EpicFurnaces:
|
||||
ef:
|
||||
description: I have no idea.
|
||||
default: true
|
||||
aliases: [ef]
|
||||
aliases: [EpicFurnaces]
|
||||
usage: /<command> [reload]
|
Loading…
Reference in New Issue
Block a user