summaryrefslogtreecommitdiff
path: root/src/main/java/com/encrox/instanceddungeons/Commander.java
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2022-04-25 18:39:58 +0200
committerLeonard Kugis <leonard@kug.is>2022-04-25 18:39:58 +0200
commiteaed2149f9f018a4486828fea612c7322af32171 (patch)
tree82806f5696266eedbeeaac95c08e14e7fed6420e /src/main/java/com/encrox/instanceddungeons/Commander.java
parentaaf6bd00b1682ce22bab036ccd1d1c280d312a4a (diff)
Added .gitignore
Diffstat (limited to 'src/main/java/com/encrox/instanceddungeons/Commander.java')
-rw-r--r--src/main/java/com/encrox/instanceddungeons/Commander.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/main/java/com/encrox/instanceddungeons/Commander.java b/src/main/java/com/encrox/instanceddungeons/Commander.java
deleted file mode 100644
index 0bc8ce9..0000000
--- a/src/main/java/com/encrox/instanceddungeons/Commander.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package com.encrox.instanceddungeons;
-
-import org.bukkit.ChatColor;
-import org.bukkit.command.Command;
-import org.bukkit.command.CommandExecutor;
-import org.bukkit.command.CommandSender;
-import org.bukkit.entity.Player;
-import org.json.JSONObject;
-
-public class Commander implements CommandExecutor {
-
- @Override
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
- if(sender instanceof Player) {
- Player player = (Player)sender;
- try {
- switch(args[0]) {
- case "open":
- break;
- case "invite":
- break;
- case "join":
- break;
- case "close":
- break;
- case "random":
- Dungeon dungeon = new Dungeon(player, args[1], Integer.parseInt(args[2]));
- InstancedDungeons.dungeons.add(dungeon);
- return true;
- }
- } catch(Exception e) {
- e.printStackTrace();
- }
- } else {
- sender.sendMessage("no player");
- }
- return false;
- }
-
-}