*If a player executes the help command and has the permission to do so, there's no need to check again after it has already been determined that they do.
*Updated plugin.yml version number from 1.2.5 to 1.2.6 *Changed plugin internal version number from 9 to 10
This commit is contained in:
parent
354f07617c
commit
2adf0c15d0
@ -9,9 +9,8 @@ public class Help {
|
||||
// Display the help, listing only the commands that the user has permissions to use.
|
||||
player.sendMessage(ChatColor.RED
|
||||
+ "[Herobrine] Command List");
|
||||
if(player.hasPermission("herobrine.help"));
|
||||
player.sendMessage(ChatColor.GREEN
|
||||
+ "/herobrine help - Shows this list of Herobrine commands");
|
||||
player.sendMessage(ChatColor.GREEN
|
||||
+ "/herobrine help - Shows this list of Herobrine commands");
|
||||
if(player.hasPermission("herobrine.attack"))
|
||||
player.sendMessage(ChatColor.GREEN
|
||||
+ "/herobrine attack <player> - Sends Herobrine to attack");
|
||||
|
@ -60,7 +60,7 @@ public class Herobrine extends JavaPlugin implements Listener {
|
||||
|
||||
public Location hbSpawnData = null;
|
||||
public boolean removeHBNextTick = false;
|
||||
public String pluginVersionCount = "9";
|
||||
public String pluginVersionCount = "10";
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Herobrine
|
||||
main: net.theprogrammersworld.herobrine.Herobrine
|
||||
version: 1.2.5
|
||||
version: 1.2.6
|
||||
commands:
|
||||
herobrine:
|
||||
description: Main command.
|
||||
|
Reference in New Issue
Block a user