mirror of
https://github.com/MilkBowl/VaultAPI.git
synced 2024-11-29 05:45:29 +01:00
remove a few deprecated permission functions
This commit is contained in:
parent
5b8dc3a706
commit
61596d8c60
@ -200,18 +200,6 @@ public abstract class Permission {
|
|||||||
return playerAdd(player.getWorld().getName(), player, permission);
|
return playerAdd(player.getWorld().getName(), player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of VaultAPI 1.4 use {@link #playerAddTransient(OfflinePlayer, String)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public boolean playerAddTransient(String player, String permission) throws UnsupportedOperationException {
|
|
||||||
Player p = plugin.getServer().getPlayer(player);
|
|
||||||
if (p == null) {
|
|
||||||
throw new UnsupportedOperationException(getName() + " does not support offline player transient permissions!");
|
|
||||||
}
|
|
||||||
return playerAddTransient(p, permission);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add transient permission to a player.
|
* Add transient permission to a player.
|
||||||
* This implementation can be used by any subclass which implements a "pure" superperms plugin, i.e.
|
* This implementation can be used by any subclass which implements a "pure" superperms plugin, i.e.
|
||||||
@ -260,7 +248,7 @@ public abstract class Permission {
|
|||||||
* @return Success or Failure
|
* @return Success or Failure
|
||||||
*/
|
*/
|
||||||
public boolean playerAddTransient(String worldName, OfflinePlayer player, String permission) {
|
public boolean playerAddTransient(String worldName, OfflinePlayer player, String permission) {
|
||||||
return playerAddTransient(worldName, player.getName(), permission);
|
return playerAddTransient(worldName, player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -276,18 +264,6 @@ public abstract class Permission {
|
|||||||
return playerAddTransient(player, permission);
|
return playerAddTransient(player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of VaultAPI 1.4 use {@link #playerAddTransient(String, OfflinePlayer, String)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public boolean playerAddTransient(String worldName, String player, String permission) {
|
|
||||||
Player p = plugin.getServer().getPlayer(player);
|
|
||||||
if (p == null) {
|
|
||||||
throw new UnsupportedOperationException(getName() + " does not support offline player transient permissions!");
|
|
||||||
}
|
|
||||||
return playerAddTransient(p, permission);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated As of VaultAPI 1.4 use {@link #playerRemoveTransient(String, OfflinePlayer, String)} instead.
|
* @deprecated As of VaultAPI 1.4 use {@link #playerRemoveTransient(String, OfflinePlayer, String)} instead.
|
||||||
*/
|
*/
|
||||||
@ -310,7 +286,7 @@ public abstract class Permission {
|
|||||||
* @return Success or Failure
|
* @return Success or Failure
|
||||||
*/
|
*/
|
||||||
public boolean playerRemoveTransient(String worldName, OfflinePlayer player, String permission) {
|
public boolean playerRemoveTransient(String worldName, OfflinePlayer player, String permission) {
|
||||||
return playerRemoveTransient(worldName, player.getName(), permission);
|
return playerRemoveTransient(player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -323,7 +299,7 @@ public abstract class Permission {
|
|||||||
* @return Success or Failure
|
* @return Success or Failure
|
||||||
*/
|
*/
|
||||||
public boolean playerRemoveTransient(String worldName, Player player, String permission) {
|
public boolean playerRemoveTransient(String worldName, Player player, String permission) {
|
||||||
return playerRemoveTransient(worldName, (OfflinePlayer) player, permission);
|
return playerRemoveTransient((OfflinePlayer) player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -379,17 +355,6 @@ public abstract class Permission {
|
|||||||
return playerRemove(player.getWorld().getName(), player, permission);
|
return playerRemove(player.getWorld().getName(), player, permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated As of VaultAPI 1.4 use {@link #playerRemoveTransient(OfflinePlayer, String)} instead.
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public boolean playerRemoveTransient(String player, String permission) {
|
|
||||||
Player p = plugin.getServer().getPlayer(player);
|
|
||||||
if (p == null)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return playerRemoveTransient(p, permission);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove transient permission from a player.
|
* Remove transient permission from a player.
|
||||||
|
Loading…
Reference in New Issue
Block a user