diff options
author | Pepich <benedikt.abel@yahoo.de> | 2017-05-05 09:43:31 +0200 |
---|---|---|
committer | Pepich <benedikt.abel@yahoo.de> | 2017-05-05 09:43:31 +0200 |
commit | 71906eb107889fd4e2eaa5687ca05560fa5cb192 (patch) | |
tree | b6bf1c20ce260302b038fa99d806824435fbbf55 /src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd | |
parent | 1ee4a123d24fc85b494ed64b863f1658cc1cfbda (diff) |
Updated to APIv3.2
Commands can now be unregistered. Requires CommandManager as of
2017/05/05 09:44
Diffstat (limited to 'src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd')
-rw-r--r-- | src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd b/src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd index 9dd5445..e88cafa 100644 --- a/src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd +++ b/src/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd @@ -1,13 +1,19 @@ command modules { list { help Lists all modules. Color indicates status: §aENABLED §cDISABLED; - perm jutils.admin; + perm jutils.modules.list; run list; } load [string:name...] { help (Re)-Loads a module. WARNING: Handle with care! This has direct affect on code being executed. This command will temporarily halt the main thread until the class loading operation was completed.; - perm jtuils.admin; + perm jtuils.modules.admin; run load name; type console; } + unload [string:name...] { + help Unloads a module. WARNING: Handle with care! This has direct affect on code being executed. This command will temporarily halt the main thread until the class loading operation was completed.; + perm jutils.modules.admin; + run unload name; + type console; + } }
\ No newline at end of file |