mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-24 06:23:59 +00:00
Adding delhome
Making sethome allow redefine
This commit is contained in:
parent
6ee7017603
commit
bb32ec9567
10 changed files with 78 additions and 1 deletions
|
@ -21,10 +21,15 @@ public class Commandsethome extends EssentialsCommand
|
|||
{
|
||||
if (user.isAuthorized("essentials.sethome.multiple"))
|
||||
{
|
||||
if (user.isAuthorized("essentials.sethome.multiple.unlimited") || user.getHomes().size() <= ess.getSettings().getMultipleHomes())
|
||||
if ((user.isAuthorized("essentials.sethome.multiple.unlimited")) || (user.getHomes().size() <= ess.getSettings().getMultipleHomes())
|
||||
|| (user.getHomes().contains(args[0])))
|
||||
{
|
||||
user.setHome(args[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new Exception(Util.format("maxHomes", ess.getSettings().getMultipleHomes()));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue