@@ -127,7 +127,7 @@ private function changePermission($player,$perm,$bool) {
127
127
}
128
128
$ attach = $ this ->perms [$ n ];
129
129
$ attach ->setPermission ($ perm ,$ bool );
130
- if (isset ($ this ->perms_cache [$ n ])) unset($ this ->perms_cache [$ n ])
130
+ if (isset ($ this ->perms_cache [$ n ])) unset($ this ->perms_cache [$ n ]);
131
131
}
132
132
133
133
public function getMessage ($ player ) {
@@ -138,8 +138,8 @@ public function getMessage($player) {
138
138
public function getVars ($ player ) {
139
139
$ vars = $ this ->consts ;
140
140
foreach ([
141
- "{tps} " ] => $ this ->getServer ()->getTicksPerSecond (),
142
- "{player} " ] => $ player ->getName (),
141
+ "{tps} " => $ this ->getServer ()->getTicksPerSecond (),
142
+ "{player} " => $ player ->getName (),
143
143
"{world} " => $ player ->getLevel ()->getName (),
144
144
"{x} " => (int )$ player ->getX (),
145
145
"{y} " => (int )$ player ->getY (),
@@ -281,7 +281,7 @@ public function onEnable(){
281
281
// We clear the permissions cache in the event of a command
282
282
// next time we schedule to fetch the HUD message it will be recomputed
283
283
private function onCmdEvent () {
284
- $ this ->perms_cache = []
284
+ $ this ->perms_cache = [];
285
285
}
286
286
public function onPlayerCmd (PlayerCommandPreprocessEvent $ ev ) {
287
287
$ this ->onCmdEvent ();
@@ -294,7 +294,7 @@ public function onConsoleCmd(ServerCommandEvent $ev) {
294
294
}
295
295
public function onQuit (PlayerQuitEvent $ ev ) {
296
296
$ n = strtolower ($ ev ->getPlayer ()->getName ());
297
- if (isset ($ this ->perms_cache [$ n ])) unset($ this ->perms_cache [$ n ])
297
+ if (isset ($ this ->perms_cache [$ n ])) unset($ this ->perms_cache [$ n ]);
298
298
if (isset ($ this ->sendPopup [$ n ])) unset($ this ->sendPopup [$ n ]);
299
299
if (isset ($ this ->disabled [$ n ])) unset($ this ->disabled [$ n ]);
300
300
if (isset ($ this ->perms [$ n ])) {
0 commit comments