mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-14 20:21:50 +01:00
Add alt warp perm for others
This commit is contained in:
parent
98d657ec4b
commit
4982cc950e
@ -27,6 +27,7 @@ public class Commandbalance extends EssentialsCommand
|
|||||||
@Override
|
@Override
|
||||||
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception
|
||||||
{
|
{
|
||||||
|
//TODO: Remove 'other' perm
|
||||||
final double bal = (args.length < 1
|
final double bal = (args.length < 1
|
||||||
|| !(user.isAuthorized("essentials.balance.others")
|
|| !(user.isAuthorized("essentials.balance.others")
|
||||||
|| user.isAuthorized("essentials.balance.other"))
|
|| user.isAuthorized("essentials.balance.other"))
|
||||||
|
@ -37,8 +37,9 @@ public class Commandwarp extends EssentialsCommand
|
|||||||
}
|
}
|
||||||
if (args.length > 0)
|
if (args.length > 0)
|
||||||
{
|
{
|
||||||
|
//TODO: Remove 'otherplayers' permission.
|
||||||
User otherUser = null;
|
User otherUser = null;
|
||||||
if (args.length == 2 && user.isAuthorized("essentials.warp.otherplayers"))
|
if (args.length == 2 && (user.isAuthorized("essentials.warp.otherplayers") || user.isAuthorized("essentials.warp.others")))
|
||||||
{
|
{
|
||||||
otherUser = ess.getUser(server.getPlayer(args[1]));
|
otherUser = ess.getUser(server.getPlayer(args[1]));
|
||||||
if (otherUser == null)
|
if (otherUser == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user