Supression de la commande /speedmessage
This commit is contained in:
@@ -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;
|
||||
|
@@ -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<Message> messages = new ArrayList<Message>();
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
@@ -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; }
|
||||
}
|
Reference in New Issue
Block a user