From 0f77525ba6a0ace3a84c84b5e569ccf69072e1b0 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 18 Jan 2015 20:06:39 -0500 Subject: [PATCH] Supression de la commande /speedmessage --- resources/plugin.yml | 15 ++----- .../pandacraftutils/PandacraftUtils.java | 4 -- .../speed_message/CommandSpeedMessage.java | 43 ------------------- .../speed_message/Message.java | 24 ----------- 4 files changed, 4 insertions(+), 82 deletions(-) delete mode 100644 src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/CommandSpeedMessage.java delete mode 100644 src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/Message.java diff --git a/resources/plugin.yml b/resources/plugin.yml index 2b25acd..502921b 100644 --- a/resources/plugin.yml +++ b/resources/plugin.yml @@ -32,19 +32,14 @@ commands: usage: /ping permission: pandacraft.ping me: - description: Envoi de messages prédéfinis + description: Décrire une action dans le contexte du joueur usage: /me aliases : [action, describe] permission: pandacraft.me - speedmessage: - description: Envoi de messages prédéfinis - usage: /mr [ list | [all|pl ] ] - aliases : [messagerapide, mr, speedmsg] - permission: pandacraft.speedmessage /selection: description: Active / désactive l'affichage du cubo usage: //selection - aliases : [/select] + aliases: [/select] permission: pandacraft.selection staff: description: Gère la file d'attente de joueurs qui ont besoin de l'assitance du staff @@ -58,10 +53,12 @@ commands: description: Envoi un message sur tout le serveur usage: /broadcast permission: pandacraft.broadcast + aliases: [bc, bcast, shout] broadcastperm: description: Envoi un message aux joueurs qui ont la permission spécifiée usage: /broadcastperm permission: pandacraft.broadcast + aliases: [bcperm, bcastperm, shoutperm] @@ -89,10 +86,6 @@ permissions: description: Utiliser la commande ping default: true - pandacraft.speedmessage: - description: Utiliser la commande speedmessage - default: op - pandacraft.selection: description: Utiliser la commande selection default: true diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/PandacraftUtils.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/PandacraftUtils.java index 8f81c3d..61aeca1 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/PandacraftUtils.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/PandacraftUtils.java @@ -16,7 +16,6 @@ import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.list.Comman import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.me.CommandMe; import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.ping.CommandPing; import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.setblock.CommandSetblock; -import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.speed_message.CommandSpeedMessage; import net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.staff_player_help.CommandStaff; import net.mc_pandacraft.java.plugin.pandacraftutils.spawntime.SpawnTimeManager; import net.mc_pandacraft.java.plugin.pandacraftutils.survival_cuboid.CommandCubo; @@ -41,7 +40,6 @@ public class PandacraftUtils extends JavaPlugin { public CommandSystem commandSystem; public CommandPing commandPing; public CommandMe commandMe; - public CommandSpeedMessage commandSpeedMessage; public CommandWandSelection commandWandSelection; public CommandStaff commandStaff; public CommandCubo commandCubo; @@ -80,7 +78,6 @@ public class PandacraftUtils extends JavaPlugin { commandSystem = new CommandSystem(this); commandPing = new CommandPing(this); commandMe = new CommandMe(this); - commandSpeedMessage = new CommandSpeedMessage(this); // messages rapides commandWandSelection = new CommandWandSelection(this); commandStaff = new CommandStaff(this); commandCubo = new CommandCubo(this); @@ -106,7 +103,6 @@ public class PandacraftUtils extends JavaPlugin { commandSystem = null; commandPing = null; commandMe = null; - commandSpeedMessage = null; commandWandSelection = null; commandStaff = null; commandCubo = null; diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/CommandSpeedMessage.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/CommandSpeedMessage.java deleted file mode 100644 index 56dfe2c..0000000 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/CommandSpeedMessage.java +++ /dev/null @@ -1,43 +0,0 @@ -package net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.speed_message; - -import java.util.ArrayList; -import java.util.List; - -import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils; - -import org.bukkit.command.Command; -import org.bukkit.command.CommandExecutor; -import org.bukkit.command.CommandSender; - -public class CommandSpeedMessage implements CommandExecutor { - - - private PandacraftUtils plugin; - private List messages = new ArrayList(); - - public CommandSpeedMessage(PandacraftUtils pl) - { - plugin = pl; - - plugin.getCommand("speedmessage").setExecutor(this); - - - - messages.add(new Message("site", "Site internet du serveur : http://www.mc-pandacraft.net/", "pandacraft.grade.all")); - messages.add(new Message("inscription", "Page d'inscription : http://mc-pandacraft.net/?p=inscription", "pandacraft.grade.default")); - messages.add(new Message("ultimate", "Grade [Ultimate] : http://www.mc-pandacraft.net/?p=ultimate", "pandacraft.grade.not_default")); - messages.add(new Message("help", "Si vous avez besoin d'aides pour les commandes, faites &7/help", "pandacraft.grade.all")); - - - } - - @Override - public boolean onCommand(CommandSender sender, Command cmd, String alias, - String[] args) { - - // TODO voir le plugin.yml pour l'utilisation de la commande - - return false; - } - -} diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/Message.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/Message.java deleted file mode 100644 index 92b83b9..0000000 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/simple_commands/speed_message/Message.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - */ -package net.mc_pandacraft.java.plugin.pandacraftutils.simple_commands.speed_message; - -/** - * @author marcbal - * - */ -public class Message { - private String name; - private String message; - private String permissionNode; - - public Message(String non, String mess, String perm) { - name = non; - message = mess; - permissionNode = perm; - } - - public String getName() { return name; } - public String getMessage() { return message; } - public String getPermissionNode() { return permissionNode; } -}