Correction de plusieurs bug relatif à /modo
This commit is contained in:
parent
365689e80f
commit
f912c76ae6
@ -39,7 +39,7 @@ public class CommandModo extends AbstractCommandExecutor {
|
||||
|
||||
|
||||
// affichage de l'aide
|
||||
if (args.length <= 1) {
|
||||
if (args.length == 0 || args[0].matches("[0-9]+")) {
|
||||
|
||||
int page = 1;
|
||||
|
||||
@ -75,7 +75,7 @@ public class CommandModo extends AbstractCommandExecutor {
|
||||
* jails
|
||||
*/
|
||||
|
||||
if (args.length >= 1 && args[0].equalsIgnoreCase("report")) {
|
||||
if (args.length >= 1 && args[0].equalsIgnoreCase("jails")) {
|
||||
|
||||
if (!(sender instanceof Player))
|
||||
{
|
||||
@ -242,7 +242,7 @@ public class CommandModo extends AbstractCommandExecutor {
|
||||
|
||||
|
||||
|
||||
|
||||
sender.sendMessage(ChatColor.RED+"Mauvaise utilisation de la commande : Faites "+ChatColor.GRAY+"/modo"+ChatColor.RED+" pour afficher l'aide.");
|
||||
|
||||
|
||||
return true;
|
||||
@ -708,7 +708,7 @@ public class CommandModo extends AbstractCommandExecutor {
|
||||
s.add(ChatColor.GOLD+"- Commandes sans sanction :");
|
||||
s.add(ChatColor.GRAY+"/modo report <Pseudo> <Raison>"+ChatColor.WHITE+" faire un rapport d'un joueur, sans appliquer de sanction");
|
||||
s.add(ChatColor.GRAY+"/modo jails"+ChatColor.WHITE+" aller à la prison");
|
||||
s.add(ChatColor.GOLD+"- Aide sur les sanctions :");
|
||||
s.add(ChatColor.GOLD+"- Aide sur les commandes de sanction :");
|
||||
s.add(ChatColor.GRAY+"/modo 2"+ChatColor.WHITE+" application d'une sanction");
|
||||
s.add(ChatColor.GRAY+"/modo 3"+ChatColor.WHITE+" retrait d'une sanction");
|
||||
s.add(ChatColor.GRAY+"/modo 4"+ChatColor.WHITE+" règles sur les sanctions");
|
||||
|
@ -7,11 +7,12 @@ import java.sql.Statement;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
|
||||
import net.mc_pandacraft.java.util.mysql.DBConnection;
|
||||
|
||||
public abstract class SQLElement {
|
||||
|
||||
DBConnection db = null;//PandacraftUtils.getInstance().databaseConnection;
|
||||
DBConnection db = PandacraftUtils.getInstance().databaseConnection;
|
||||
|
||||
|
||||
private boolean saved = false;
|
||||
|
@ -6,11 +6,12 @@ import java.sql.Statement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.mc_pandacraft.java.plugin.pandacraftutils.PandacraftUtils;
|
||||
import net.mc_pandacraft.java.util.mysql.DBConnection;
|
||||
|
||||
public abstract class SQLTable<T extends SQLElement> {
|
||||
|
||||
DBConnection db = null;//PandacraftUtils.getInstance().databaseConnection;
|
||||
DBConnection db = PandacraftUtils.getInstance().databaseConnection;
|
||||
|
||||
protected final String tableName;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user