mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
[trunk] warps should once again charge if setup in command costs
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1334 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
11740c49bc
commit
e025a1a099
@ -59,14 +59,14 @@ public class Commandwarp extends EssentialsCommand
|
||||
{
|
||||
if (user.isAuthorized("essentials.warp." + args[0]))
|
||||
{
|
||||
user.canAfford(this);
|
||||
user.charge(this);
|
||||
user.getTeleport().warp(args[0], this.getName());
|
||||
return;
|
||||
}
|
||||
user.sendMessage("§cYou do not have Permission to use that warp.");
|
||||
return;
|
||||
}
|
||||
user.canAfford(this);
|
||||
user.charge(this);
|
||||
user.getTeleport().warp(args[0], this.getName());
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
Reference in New Issue
Block a user