mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 13:07:23 +01:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
2124ad4405
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: Vault
|
name: Vault
|
||||||
main: net.milkbowl.vault.Vault
|
main: net.milkbowl.vault.Vault
|
||||||
version: 1.2.21-b${BUILD_NUMBER}
|
version: 1.2.22-b${BUILD_NUMBER}
|
||||||
authors: [cereal, Sleaker, mung3r]
|
authors: [cereal, Sleaker, mung3r]
|
||||||
website: http://dev.bukkit.org/server-mods/vault
|
website: http://dev.bukkit.org/server-mods/vault
|
||||||
load: startup
|
load: startup
|
||||||
|
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.milkbowl.vault</groupId>
|
<groupId>net.milkbowl.vault</groupId>
|
||||||
<artifactId>Vault</artifactId>
|
<artifactId>Vault</artifactId>
|
||||||
<version>1.2.21-SNAPSHOT</version>
|
<version>1.2.22-SNAPSHOT</version>
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
<artifactId>craftbukkit</artifactId>
|
<artifactId>craftbukkit</artifactId>
|
||||||
<version>1.4.2-R0.2</version>
|
<version>1.4.5-R0.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.hydrox.bukkit.DroxPerms</groupId>
|
<groupId>de.hydrox.bukkit.DroxPerms</groupId>
|
||||||
|
@ -23,7 +23,6 @@ import net.milkbowl.vault.permission.Permission;
|
|||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.craftbukkit.command.ColouredConsoleSender;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
@ -113,7 +112,7 @@ public class Permission_Permissions3 extends Permission {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean has(CommandSender sender, String permission) {
|
public boolean has(CommandSender sender, String permission) {
|
||||||
if (sender.isOp() || sender instanceof ColouredConsoleSender) {
|
if (sender.isOp() || !(sender instanceof Player)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return has(((Player) sender).getWorld().getName(), sender.getName(), permission);
|
return has(((Player) sender).getWorld().getName(), sender.getName(), permission);
|
||||||
|
Loading…
Reference in New Issue
Block a user