Skip to content

Commit

Permalink
Renamed all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Baumann committed Jan 14, 2014
1 parent 3ffaf46 commit 972f997
Show file tree
Hide file tree
Showing 30 changed files with 663 additions and 643 deletions.
48 changes: 24 additions & 24 deletions src/com/dre/managerxl/commands/MCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
import org.bukkit.entity.Player;

import com.dre.managerxl.P;
import com.dre.managerxl.commands.managing.MotD;
import com.dre.managerxl.commands.managing.MotDSet;
import com.dre.managerxl.commands.player.Ban;
import com.dre.managerxl.commands.player.GameMode;
import com.dre.managerxl.commands.player.Home;
import com.dre.managerxl.commands.player.Invisible;
import com.dre.managerxl.commands.player.Kick;
import com.dre.managerxl.commands.player.KickAll;
import com.dre.managerxl.commands.player.Mute;
import com.dre.managerxl.commands.player.SetHome;
import com.dre.managerxl.commands.player.TimeBan;
import com.dre.managerxl.commands.player.Unban;
import com.dre.managerxl.commands.managing.CMDMotD;
import com.dre.managerxl.commands.managing.CMDMotDSet;
import com.dre.managerxl.commands.player.CMDBan;
import com.dre.managerxl.commands.player.CMDGameMode;
import com.dre.managerxl.commands.player.CMDHome;
import com.dre.managerxl.commands.player.CMDInvisible;
import com.dre.managerxl.commands.player.CMDKick;
import com.dre.managerxl.commands.player.CMDKickAll;
import com.dre.managerxl.commands.player.CMDMute;
import com.dre.managerxl.commands.player.CMDSetHome;
import com.dre.managerxl.commands.player.CMDTimeBan;
import com.dre.managerxl.commands.player.CMDUnban;

public abstract class MCommand {
private static MCommandExecutor commandListener = new MCommandExecutor();
Expand Down Expand Up @@ -77,20 +77,20 @@ public void displayHelp(CommandSender sender) {
public static void initCommands() {

// Managing commands
new MotD();
new MotDSet();
new CMDMotD();
new CMDMotDSet();

// Player commands
new Ban();
new Unban();
new TimeBan();
new Home();
new SetHome();
new Kick();
new KickAll();
new Mute();
new GameMode();
new Invisible();
new CMDBan();
new CMDUnban();
new CMDTimeBan();
new CMDHome();
new CMDSetHome();
new CMDKick();
new CMDKickAll();
new CMDMute();
new CMDGameMode();
new CMDInvisible();
}

public static Set<MCommand> get() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class OpenInventory {
// TODO: Implement Command
}
package com.dre.managerxl.commands.inventory;

public class CMDClearInventory {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class Kit {
// TODO: Implement Command
}
package com.dre.managerxl.commands.inventory;

public class CMDKit {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class KitAdd {
// TODO: Implement Command
}
package com.dre.managerxl.commands.inventory;

public class CMDKitAdd {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class KitEdit {
// TODO: Implement Command
}
package com.dre.managerxl.commands.inventory;

public class CMDKitEdit {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class CMDOpenInventory {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class ClearInventory {
// TODO: Implement Command
}
package com.dre.managerxl.commands.inventory;

public class CMDRestoreInventory {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.dre.managerxl.commands.inventory;

public class CMDSaveInventory {
// TODO: Implement Command
}

This file was deleted.

5 changes: 0 additions & 5 deletions src/com/dre/managerxl/commands/inventory/SaveInventory.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import com.dre.managerxl.commands.MCommand;
import com.dre.managerxl.util.MUtility;

public class AddBroadcast extends MCommand {
public AddBroadcast() {
public class CMDAddBroadcast extends MCommand {
public CMDAddBroadcast() {
this.command = "addbroadcast";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_AddBroadcast");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import com.dre.managerxl.commands.MCommand;
import com.dre.managerxl.util.MUtility;

public class AddDate extends MCommand {
public AddDate() {
public class CMDAddDate extends MCommand {
public CMDAddDate() {
this.command = "adddate";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_AddDate");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import com.dre.managerxl.commands.MCommand;
import com.dre.managerxl.util.MUtility;

public class AddNews extends MCommand {
public AddNews() {
public class CMDAddNews extends MCommand {
public CMDAddNews() {
this.command = "addnews";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_AddNews");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.managing;

public class Welcome {
// TODO: Implement Command
}
package com.dre.managerxl.commands.managing;

public class CMDBroadcast {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
package com.dre.managerxl.commands.managing;

import org.bukkit.command.CommandSender;

import com.dre.managerxl.P;
import com.dre.managerxl.commands.MCommand;

public class MotD extends MCommand {

public MotD() {
this.command = "motd";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_MotD");
this.permission = "mxl.cmd.managing.motd";

this.isConsoleCommand = true;
this.isPlayerCommand = true;

this.init();
}

@Override
public void onExecute(String[] args, CommandSender sender) {
P.p.msg(sender, P.p.config.getMotD());
}
}
package com.dre.managerxl.commands.managing;

import org.bukkit.command.CommandSender;

import com.dre.managerxl.P;
import com.dre.managerxl.commands.MCommand;

public class CMDMotD extends MCommand {

public CMDMotD() {
this.command = "motd";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_MotD");
this.permission = "mxl.cmd.managing.motd";

this.isConsoleCommand = true;
this.isPlayerCommand = true;

this.init();
}

@Override
public void onExecute(String[] args, CommandSender sender) {
P.p.msg(sender, P.p.config.getMotD());
}
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
package com.dre.managerxl.commands.managing;

import org.bukkit.command.CommandSender;

import com.dre.managerxl.P;
import com.dre.managerxl.commands.MCommand;
import com.dre.managerxl.util.MUtility;

public class MotDSet extends MCommand {
public MotDSet() {
this.command = "motdset";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_MotDSet");
this.permission = "mxl.cmd.managing.motdset";

this.isConsoleCommand = true;
this.isPlayerCommand = true;

this.init();
}

@Override
public void onExecute(String[] args, CommandSender sender) {
P.p.config.setMotD(MUtility.parseMessage(args, 0));
P.p.config.saveSingleConfig("MotD", P.p.config.getMotD());
P.p.msg(sender, P.p.getLanguageReader().get("Cmd_MotDSet_Success"));
}
}
package com.dre.managerxl.commands.managing;

import org.bukkit.command.CommandSender;

import com.dre.managerxl.P;
import com.dre.managerxl.commands.MCommand;
import com.dre.managerxl.util.MUtility;

public class CMDMotDSet extends MCommand {
public CMDMotDSet() {
this.command = "motdset";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_MotDSet");
this.permission = "mxl.cmd.managing.motdset";

this.isConsoleCommand = true;
this.isPlayerCommand = true;

this.init();
}

@Override
public void onExecute(String[] args, CommandSender sender) {
P.p.config.setMotD(MUtility.parseMessage(args, 0));
P.p.config.saveSingleConfig("MotD", P.p.config.getMotD());
P.p.msg(sender, P.p.getLanguageReader().get("Cmd_MotDSet_Success"));
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.managing;

public class News {
// TODO: Implement Command
}
package com.dre.managerxl.commands.managing;

public class CMDNews {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import com.dre.managerxl.P;
import com.dre.managerxl.commands.MCommand;

public class ReloadBroadcaster extends MCommand {
public ReloadBroadcaster() {
public class CMDReloadBroadcaster extends MCommand {
public CMDReloadBroadcaster() {
this.command = "reloadbroadcaster";
this.parrent = null;
this.help = P.p.getLanguageReader().get("Help_ReloadBroadcaster");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.managing;

public class Broadcast {
// TODO: Implement Command
}
package com.dre.managerxl.commands.managing;

public class CMDWelcome {
// TODO: Implement Command
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.dre.managerxl.commands.managing;

public class WelcomeSet {
// TODO: Implement Command
}
package com.dre.managerxl.commands.managing;

public class CMDWelcomeSet {
// TODO: Implement Command
}
Loading

0 comments on commit 972f997

Please sign in to comment.