Supression de la commande /speedmessage
This commit is contained in:
parent
bf48b5ca97
commit
0f77525ba6
@ -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 <message>
|
||||
aliases : [action, describe]
|
||||
permission: pandacraft.me
|
||||
speedmessage:
|
||||
description: Envoi de messages prédéfinis
|
||||
usage: /mr [ list | [all|pl <pseudo>] <messageName> ]
|
||||
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 <message>
|
||||
permission: pandacraft.broadcast
|
||||
aliases: [bc, bcast, shout]
|
||||
broadcastperm:
|
||||
description: Envoi un message aux joueurs qui ont la permission spécifiée
|
||||
usage: /broadcastperm <permission> <message>
|
||||
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
|
||||
|
@ -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; }
|
||||
}
|
Loading…
Reference in New Issue
Block a user