mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Missing nochargeexception in /home and /world
This commit is contained in:
parent
afb951461c
commit
ecc1a0acea
2 changed files with 3 additions and 1 deletions
|
@ -58,5 +58,6 @@ public class Commandhome extends EssentialsCommand
|
||||||
user.sendMessage(Util.format("homes", Util.joinList(homes)));
|
user.sendMessage(Util.format("homes", Util.joinList(homes)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class Commandworld extends EssentialsCommand
|
||||||
user.sendMessage(Util.i18n("invalidWorld"));
|
user.sendMessage(Util.i18n("invalidWorld"));
|
||||||
user.sendMessage(Util.format("possibleWorlds", server.getWorlds().size() - 1));
|
user.sendMessage(Util.format("possibleWorlds", server.getWorlds().size() - 1));
|
||||||
user.sendMessage(Util.i18n("typeWorldName"));
|
user.sendMessage(Util.i18n("typeWorldName"));
|
||||||
return;
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,5 +71,6 @@ public class Commandworld extends EssentialsCommand
|
||||||
Trade charge = new Trade(this.getName(), ess);
|
Trade charge = new Trade(this.getName(), ess);
|
||||||
charge.isAffordableFor(user);
|
charge.isAffordableFor(user);
|
||||||
user.getTeleport().teleport(loc, charge);
|
user.getTeleport().teleport(loc, charge);
|
||||||
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue