|
26 | 26 | import java.util.Map; |
27 | 27 | import java.util.Map.Entry; |
28 | 28 |
|
29 | | -import dev.jorel.commandapi.arguments.BooleanArgument; |
30 | | -import dev.jorel.commandapi.arguments.StringArgument; |
31 | 29 | import org.bukkit.Bukkit; |
32 | 30 | import org.bukkit.configuration.file.FileConfiguration; |
33 | 31 | import org.bukkit.plugin.InvalidPluginException; |
@@ -133,36 +131,5 @@ private JavaPlugin getAndValidatePlugin(String pluginName) { |
133 | 131 | @Override |
134 | 132 | public void onEnable() { |
135 | 133 | CommandAPI.onEnable(); |
136 | | - |
137 | | - // TODO: Remove these commands |
138 | | - new CommandAPICommand("register") |
139 | | - .withArguments(new StringArgument("name")) |
140 | | - .withOptionalArguments(new StringArgument("namespace")) |
141 | | - .executes(info -> { |
142 | | - String name = info.args().getUnchecked("name"); |
143 | | - String namespace = info.args().getOrDefaultUnchecked("namespace", "minecraft"); |
144 | | - |
145 | | - new CommandAPICommand(name) |
146 | | - .executes(subinfo -> { |
147 | | - subinfo.sender().sendMessage("You ran the " + name + " command"); |
148 | | - }) |
149 | | - .register(namespace); |
150 | | - }) |
151 | | - .register(); |
152 | | - |
153 | | - new CommandAPICommand("unregister") |
154 | | - .withArguments(new StringArgument("name")) |
155 | | - .withOptionalArguments( |
156 | | - new BooleanArgument("unregisterNamespaces"), |
157 | | - new BooleanArgument("unregisterBukkit") |
158 | | - ) |
159 | | - .executes(info -> { |
160 | | - String name = info.args().getUnchecked("name"); |
161 | | - boolean unregisterNamespaces = info.args().getOrDefaultUnchecked("unregisterNamespaces", false); |
162 | | - boolean unregisterBukkit = info.args().getOrDefaultUnchecked("unregisterBukkit", false); |
163 | | - |
164 | | - CommandAPIBukkit.unregister(name, unregisterNamespaces, unregisterBukkit); |
165 | | - }) |
166 | | - .register(); |
167 | 134 | } |
168 | 135 | } |
0 commit comments