47 $parent = self::registerPermission(
new Permission(self::ROOT,
"Allows using all PocketMine commands and utilities"));
49 $broadcasts = self::registerPermission(
new Permission(self::ROOT .
".broadcast",
"Allows the user to receive all broadcast messages"), $parent);
51 self::registerPermission(
new Permission(self::ROOT .
".broadcast.admin",
"Allows the user to receive administrative broadcasts",
Permission::DEFAULT_OP), $broadcasts);
52 self::registerPermission(
new Permission(self::ROOT .
".broadcast.user",
"Allows the user to receive user broadcasts",
Permission::DEFAULT_TRUE), $broadcasts);
54 $broadcasts->recalculatePermissibles();
56 $commands = self::registerPermission(
new Permission(self::ROOT .
".command",
"Allows using all PocketMine commands"), $parent);
58 $whitelist = self::registerPermission(
new Permission(self::ROOT .
".command.whitelist",
"Allows the user to modify the server whitelist",
Permission::DEFAULT_OP), $commands);
59 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.add",
"Allows the user to add a player to the server whitelist"), $whitelist);
60 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.remove",
"Allows the user to remove a player to the server whitelist"), $whitelist);
61 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.reload",
"Allows the user to reload the server whitelist"), $whitelist);
62 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.enable",
"Allows the user to enable the server whitelist"), $whitelist);
63 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.disable",
"Allows the user to disable the server whitelist"), $whitelist);
64 self::registerPermission(
new Permission(self::ROOT .
".command.whitelist.list",
"Allows the user to list all the players on the server whitelist"), $whitelist);
65 $whitelist->recalculatePermissibles();
67 $ban = self::registerPermission(
new Permission(self::ROOT .
".command.ban",
"Allows the user to ban people",
Permission::DEFAULT_OP), $commands);
68 self::registerPermission(
new Permission(self::ROOT .
".command.ban.player",
"Allows the user to ban players"), $ban);
69 self::registerPermission(
new Permission(self::ROOT .
".command.ban.ip",
"Allows the user to ban IP addresses"), $ban);
70 $ban->recalculatePermissibles();
72 $unban = self::registerPermission(
new Permission(self::ROOT .
".command.unban",
"Allows the user to unban people",
Permission::DEFAULT_OP), $commands);
73 self::registerPermission(
new Permission(self::ROOT .
".command.unban.player",
"Allows the user to unban players"), $unban);
74 self::registerPermission(
new Permission(self::ROOT .
".command.unban.ip",
"Allows the user to unban IP addresses"), $unban);
75 $unban->recalculatePermissibles();
77 $op = self::registerPermission(
new Permission(self::ROOT .
".command.op",
"Allows the user to change operators",
Permission::DEFAULT_OP), $commands);
78 self::registerPermission(
new Permission(self::ROOT .
".command.op.give",
"Allows the user to give a player operator status"), $op);
79 self::registerPermission(
new Permission(self::ROOT .
".command.op.take",
"Allows the user to take a players operator status"), $op);
80 $op->recalculatePermissibles();
82 $save = self::registerPermission(
new Permission(self::ROOT .
".command.save",
"Allows the user to save the worlds",
Permission::DEFAULT_OP), $commands);
83 self::registerPermission(
new Permission(self::ROOT .
".command.save.enable",
"Allows the user to enable automatic saving"), $save);
84 self::registerPermission(
new Permission(self::ROOT .
".command.save.disable",
"Allows the user to disable automatic saving"), $save);
85 self::registerPermission(
new Permission(self::ROOT .
".command.save.perform",
"Allows the user to perform a manual save"), $save);
86 $save->recalculatePermissibles();
88 $time = self::registerPermission(
new Permission(self::ROOT .
".command.time",
"Allows the user to alter the time",
Permission::DEFAULT_OP), $commands);
89 self::registerPermission(
new Permission(self::ROOT .
".command.time.add",
"Allows the user to fast-forward time"), $time);
90 self::registerPermission(
new Permission(self::ROOT .
".command.time.set",
"Allows the user to change the time"), $time);
91 self::registerPermission(
new Permission(self::ROOT .
".command.time.start",
"Allows the user to restart the time"), $time);
92 self::registerPermission(
new Permission(self::ROOT .
".command.time.stop",
"Allows the user to stop the time"), $time);
93 self::registerPermission(
new Permission(self::ROOT .
".command.time.query",
"Allows the user query the time"), $time);
94 $time->recalculatePermissibles();
96 $kill = self::registerPermission(
new Permission(self::ROOT .
".command.kill",
"Allows the user to kill players",
Permission::DEFAULT_OP), $commands);
97 self::registerPermission(
new Permission(self::ROOT .
".command.kill.self",
"Allows the user to commit suicide",
Permission::DEFAULT_TRUE), $kill);
98 self::registerPermission(
new Permission(self::ROOT .
".command.kill.other",
"Allows the user to kill other players"), $kill);
99 $kill->recalculatePermissibles();
101 self::registerPermission(
new Permission(self::ROOT .
".command.me",
"Allows the user to perform a chat action",
Permission::DEFAULT_TRUE), $commands);
102 self::registerPermission(
new Permission(self::ROOT .
".command.tell",
"Allows the user to privately message another player",
Permission::DEFAULT_TRUE), $commands);
103 self::registerPermission(
new Permission(self::ROOT .
".command.say",
"Allows the user to talk as the console",
Permission::DEFAULT_OP), $commands);
104 self::registerPermission(
new Permission(self::ROOT .
".command.give",
"Allows the user to give items to players",
Permission::DEFAULT_OP), $commands);
106 $effect = self::registerPermission(
new Permission(self::ROOT .
".command.effect",
"Allows the user to give/take potion effects",
Permission::DEFAULT_OP), $commands);
107 self::registerPermission(
new Permission(self::ROOT .
".command.effect.other",
"Allows the user to give/take potion effects for other",
Permission::DEFAULT_OP), $commands);
108 $effect->recalculatePermissibles();
110 self::registerPermission(
new Permission(self::ROOT .
".command.enchant",
"Allows the user to enchant items",
Permission::DEFAULT_OP), $commands);
111 self::registerPermission(
new Permission(self::ROOT .
".command.particle",
"Allows the user to create particle effects",
Permission::DEFAULT_OP), $commands);
112 self::registerPermission(
new Permission(self::ROOT .
".command.teleport",
"Allows the user to teleport players",
Permission::DEFAULT_OP), $commands);
113 self::registerPermission(
new Permission(self::ROOT .
".command.kick",
"Allows the user to kick players",
Permission::DEFAULT_OP), $commands);
114 self::registerPermission(
new Permission(self::ROOT .
".command.stop",
"Allows the user to stop the server",
Permission::DEFAULT_OP), $commands);
115 self::registerPermission(
new Permission(self::ROOT .
".command.list",
"Allows the user to list all online players",
Permission::DEFAULT_OP), $commands);
116 self::registerPermission(
new Permission(self::ROOT .
".command.help",
"Allows the user to view the help menu",
Permission::DEFAULT_TRUE), $commands);
117 self::registerPermission(
new Permission(self::ROOT .
".command.plugins",
"Allows the user to view the list of plugins",
Permission::DEFAULT_OP), $commands);
118 self::registerPermission(
new Permission(self::ROOT .
".command.reload",
"Allows the user to reload the server settings",
Permission::DEFAULT_OP), $commands);
119 self::registerPermission(
new Permission(self::ROOT .
".command.version",
"Allows the user to view the version of the server",
Permission::DEFAULT_TRUE), $commands);
120 self::registerPermission(
new Permission(self::ROOT .
".command.gamemode",
"Allows the user to change the gamemode of players",
Permission::DEFAULT_OP), $commands);
121 self::registerPermission(
new Permission(self::ROOT .
".command.defaultgamemode",
"Allows the user to change the default gamemode",
Permission::DEFAULT_OP), $commands);
122 self::registerPermission(
new Permission(self::ROOT .
".command.seed",
"Allows the user to view the seed of the world",
Permission::DEFAULT_OP), $commands);
123 self::registerPermission(
new Permission(self::ROOT .
".command.status",
"Allows the user to view the server performance",
Permission::DEFAULT_OP), $commands);
124 self::registerPermission(
new Permission(self::ROOT .
".command.gc",
"Allows the user to fire garbage collection tasks",
Permission::DEFAULT_OP), $commands);
125 self::registerPermission(
new Permission(self::ROOT .
".command.dumpmemory",
"Allows the user to dump memory contents",
Permission::DEFAULT_OP), $commands);
126 self::registerPermission(
new Permission(self::ROOT .
".command.timings",
"Allows the user to records timings for all plugin events",
Permission::DEFAULT_OP), $commands);
127 self::registerPermission(
new Permission(self::ROOT .
".command.spawnpoint",
"Allows the user to change player's spawnpoint",
Permission::DEFAULT_OP), $commands);
128 self::registerPermission(
new Permission(self::ROOT .
".command.setworldspawn",
"Allows the user to change the world spawn",
Permission::DEFAULT_OP), $commands);
130 self::registerPermission(
new Permission(self::ROOT .
".command.extractphar",
"",
Permission::DEFAULT_OP), $commands);
131 self::registerPermission(
new Permission(self::ROOT .
".command.extractplugin",
"",
Permission::DEFAULT_OP), $commands);
132 self::registerPermission(
new Permission(self::ROOT .
".command.makeplugin",
"",
Permission::DEFAULT_OP), $commands);
133 self::registerPermission(
new Permission(self::ROOT .
".command.makeserver",
"",
Permission::DEFAULT_OP), $commands);
134 self::registerPermission(
new Permission(self::ROOT .
".command.loadplugin",
"",
Permission::DEFAULT_OP), $commands);
135 self::registerPermission(
new Permission(self::ROOT .
".command.bancid",
"",
Permission::DEFAULT_OP), $commands);
136 self::registerPermission(
new Permission(self::ROOT .
".command.pardoncid",
"",
Permission::DEFAULT_OP), $commands);
137 self::registerPermission(
new Permission(self::ROOT .
".command.bancidbyname",
"",
Permission::DEFAULT_OP), $commands);
138 self::registerPermission(
new Permission(self::ROOT .
".command.banipbyname",
"",
Permission::DEFAULT_OP), $commands);
139 self::registerPermission(
new Permission(self::ROOT .
".command.weather",
"",
Permission::DEFAULT_OP), $commands);
140 self::registerPermission(
new Permission(self::ROOT .
".command.loadplugin",
"",
Permission::DEFAULT_OP), $commands);
141 self::registerPermission(
new Permission(self::ROOT .
".command.lvdat",
"",
Permission::DEFAULT_OP), $commands);
142 self::registerPermission(
new Permission(self::ROOT .
".command.biome",
"",
Permission::DEFAULT_OP), $commands);
143 self::registerPermission(
new Permission(self::ROOT .
".command.cave",
"",
Permission::DEFAULT_OP), $commands);
144 self::registerPermission(
new Permission(self::ROOT .
".command.setblock",
"",
Permission::DEFAULT_OP), $commands);
145 self::registerPermission(
new Permission(self::ROOT .
".command.fill",
"",
Permission::DEFAULT_OP), $commands);
146 self::registerPermission(
new Permission(self::ROOT .
".command.summon",
"",
Permission::DEFAULT_OP), $commands);
147 self::registerPermission(
new Permission(self::ROOT .
".command.xp",
"",
Permission::DEFAULT_OP), $commands);
148 self::registerPermission(
new Permission(self::ROOT .
".command.chunkinfo",
"",
Permission::DEFAULT_OP), $commands);
149 self::registerPermission(
new Permission(self::ROOT .
".command.transfer",
"",
Permission::DEFAULT_OP), $commands);
151 $commands->recalculatePermissibles();
153 $parent->recalculatePermissibles();