1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 10:34:41 +02: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:
ementalo
2011-05-03 23:39:10 +00:00
parent cb55472fe6
commit 89f0bfb5c5

View File

@@ -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)