Added 1.7.2 support, added old files.
This commit is contained in:
@@ -24,6 +24,7 @@ import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import com.lishid.openinv.OpenInv;
|
||||
import com.lishid.openinv.Permissions;
|
||||
|
||||
public class SearchInvPluginCommand implements CommandExecutor
|
||||
@@ -37,7 +38,7 @@ public class SearchInvPluginCommand implements CommandExecutor
|
||||
{
|
||||
if (sender instanceof Player)
|
||||
{
|
||||
if (!sender.hasPermission(Permissions.PERM_SEARCH))
|
||||
if (!OpenInv.hasPermission(sender, Permissions.PERM_SEARCH))
|
||||
{
|
||||
sender.sendMessage(ChatColor.RED + "You do not have permission to access player inventories");
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user