Minor refactor
This commit is contained in:
1 parent
18c6c250bd
commit
d567724e4d
3 files changed
+6
-22
No files matched your search
@@ -26,7 +26,7 @@ public class CommandManager implements CommandExecutor {
|
||||
|
||||
}
|
||||
|
||||
// Extending method from bukkit's CommandManager.
|
||||
// Command execution event handler extending bukkit's CommandManager
|
||||
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
|
||||
|
||||
// Takes over command execution if plugin is invoked.
|
||||
|
||||
@@ -8,27 +8,9 @@ import org.bukkit.GameMode;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
// Extending this class is standard bukkit boilerplate for any plugin, or the server software won't load the classes.
|
||||
// Extending this class is standard bukkit boilerplate for any plugin, or else the server software won't load the classes.
|
||||
public class NoClip extends JavaPlugin {
|
||||
|
||||
|
||||
// Keep plugin class private so nothing else can use it.
|
||||
private static NoClip instance;
|
||||
|
||||
// Getter for instance of primary class. Each new instance in memory is a new player.
|
||||
public NoClip() {
|
||||
|
||||
instance = this;
|
||||
|
||||
}
|
||||
|
||||
// Public getter for plugin execution
|
||||
public static NoClip getPlugin() {
|
||||
|
||||
return instance;
|
||||
|
||||
}
|
||||
|
||||
// What to do when the plugin is run by the server.
|
||||
public void onEnable() {
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
name: NoClip-OG
|
||||
version: 1.0
|
||||
author: NotAlexNoyle
|
||||
main: plugin.NoClip
|
||||
description: A Spigot plugin that allows you to phase through solid blocks like in Portal 2's console mode!
|
||||
website: https://github.com/NotAlexNoyle/NoClip-OG
|
||||
version: 1.0
|
||||
api-version: 1.18
|
||||
main: plugin.NoClip
|
||||
|
||||
commands:
|
||||
noclip:
|
||||
|
||||
Reference in new issue
Block a user