mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-01-14 12:11:29 +01:00
Added set suffix support
This commit is contained in:
parent
987aa76b25
commit
075cc5c7eb
@ -444,4 +444,6 @@ public abstract class Permission {
|
|||||||
public String getPlayerSuffix(Player player) {
|
public String getPlayerSuffix(Player player) {
|
||||||
return getPlayerSuffix(player.getWorld().getName(), player.getName());
|
return getPlayerSuffix(player.getWorld().getName(), player.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abstract public void setPlayerSuffix(Player player, String suffix);
|
||||||
}
|
}
|
@ -352,4 +352,9 @@ public class Permission_Permissions extends Permission {
|
|||||||
public String getPlayerSuffix(String world, String playerName) {
|
public String getPlayerSuffix(String world, String playerName) {
|
||||||
return this.permission.getHandler().getUserSuffix(world, playerName);
|
return this.permission.getHandler().getUserSuffix(world, playerName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPlayerSuffix(Player player, String suffix) {
|
||||||
|
this.permission.getHandler().addUserInfo(player.getWorld().getName(), player.getName(), "suffix", suffix);
|
||||||
|
}
|
||||||
}
|
}
|
@ -389,4 +389,11 @@ public class Permission_PermissionsEx extends Permission {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setPlayerSuffix(Player player, String suffix) {
|
||||||
|
PermissionUser user = PermissionsEx.getPermissionManager().getUser(player);
|
||||||
|
if (user != null)
|
||||||
|
user.setSuffix(suffix);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user