summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/coremods/moduleLoader/ModuleLoader.cmd
blob: 4e06bd01beb9701be02edf26fc59da95b68d43c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
command modules {
    [empty] {
        help Lists all modules. Color indicates status: §aENABLED §cDISABLED;
		perm moduleloader.modules.list; 
		run list;
    }
	list {
		help Lists all modules. Color indicates status: §aENABLED §cDISABLED;
		perm moduleloader.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 moduleloader.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 moduleloader.modules.admin;
        run unload name;
        type console;
    }
}