mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-14 18:44:48 +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:
@@ -59,14 +59,14 @@ public class Commandwarp extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
if (user.isAuthorized("essentials.warp." + args[0]))
|
if (user.isAuthorized("essentials.warp." + args[0]))
|
||||||
{
|
{
|
||||||
user.canAfford(this);
|
user.charge(this);
|
||||||
user.getTeleport().warp(args[0], this.getName());
|
user.getTeleport().warp(args[0], this.getName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
user.sendMessage("§cYou do not have Permission to use that warp.");
|
user.sendMessage("§cYou do not have Permission to use that warp.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
user.canAfford(this);
|
user.charge(this);
|
||||||
user.getTeleport().warp(args[0], this.getName());
|
user.getTeleport().warp(args[0], this.getName());
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user