mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 18:59:00 +00:00
Fixed bad permission nodes on /kill, closes #3139
This commit is contained in:
parent
2eaa12005e
commit
20911930cf
@ -52,7 +52,7 @@ class KillCommand extends VanillaCommand{
|
||||
}
|
||||
|
||||
if(count($args) === 1){
|
||||
if(!$sender->hasPermission("pocketmine.kill.other")){
|
||||
if(!$sender->hasPermission("pocketmine.command.kill.other")){
|
||||
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.permission"));
|
||||
|
||||
return true;
|
||||
@ -79,7 +79,7 @@ class KillCommand extends VanillaCommand{
|
||||
}
|
||||
|
||||
if($sender instanceof Player){
|
||||
if(!$sender->hasPermission("pocketmine.kill.self")){
|
||||
if(!$sender->hasPermission("pocketmine.command.kill.self")){
|
||||
$sender->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.permission"));
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user