mirror of
https://github.com/zDevelopers/ImageOnMap.git
synced 2024-11-17 07:35:23 +01:00
added usage parameters in command info
This commit is contained in:
parent
3c3ca165db
commit
de0390c046
@ -55,7 +55,7 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandInfo(name = "delete", usageParameters = "<map name> [--confirm]")
|
@CommandInfo(name = "delete", usageParameters = "[player name]:<map name> [--confirm]")
|
||||||
@WithFlags({"confirm"})
|
@WithFlags({"confirm"})
|
||||||
public class DeleteCommand extends IoMCommand {
|
public class DeleteCommand extends IoMCommand {
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
|
||||||
@CommandInfo(name = "explore")
|
@CommandInfo(name = "explore",usageParameters = "[player name]")
|
||||||
public class ExploreCommand extends IoMCommand {
|
public class ExploreCommand extends IoMCommand {
|
||||||
@Override
|
@Override
|
||||||
protected void run() throws CommandException {
|
protected void run() throws CommandException {
|
||||||
|
@ -49,7 +49,7 @@ import java.util.List;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandInfo(name = "get")
|
@CommandInfo(name = "get",usageParameters = "[player name]:<map name>")
|
||||||
public class GetCommand extends IoMCommand {
|
public class GetCommand extends IoMCommand {
|
||||||
@Override
|
@Override
|
||||||
protected void run() throws CommandException {
|
protected void run() throws CommandException {
|
||||||
@ -84,7 +84,9 @@ public class GetCommand extends IoMCommand {
|
|||||||
|
|
||||||
//TODO passer en static
|
//TODO passer en static
|
||||||
ImageOnMap.getPlugin().getCommandWorker().offlineNameFetch(playerName, uuid -> {
|
ImageOnMap.getPlugin().getCommandWorker().offlineNameFetch(playerName, uuid -> {
|
||||||
if (!sender.isOnline()) return;
|
if (!sender.isOnline()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (uuid == null) {
|
if (uuid == null) {
|
||||||
warning(sender, I.t("The player {0} does not exist.", playerName));
|
warning(sender, I.t("The player {0} does not exist.", playerName));
|
||||||
return;
|
return;
|
||||||
|
@ -53,7 +53,7 @@ import org.bukkit.command.CommandSender;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
|
|
||||||
@CommandInfo(name = "give", usageParameters = "<playername> [playerFrom]:<mapname>")
|
@CommandInfo(name = "give", usageParameters = "<player name> [playerFrom]:<map name>")
|
||||||
public class GiveCommand extends IoMCommand {
|
public class GiveCommand extends IoMCommand {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -54,7 +54,7 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandInfo(name = "list")
|
@CommandInfo(name = "list", usageParameters = "[player name]")
|
||||||
public class ListCommand extends IoMCommand {
|
public class ListCommand extends IoMCommand {
|
||||||
@Override
|
@Override
|
||||||
protected void run() throws CommandException {
|
protected void run() throws CommandException {
|
||||||
|
Loading…
Reference in New Issue
Block a user