mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-05-08 16:46:57 +00:00
Throw an error if user doesn't have permission to use kit sign.
This commit is contained in:
parent
ef7b940e96
commit
f930ff48a2
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
package com.earth2me.essentials.signs;
|
package com.earth2me.essentials.signs;
|
||||||
|
|
||||||
|
import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.*;
|
import com.earth2me.essentials.*;
|
||||||
import com.earth2me.essentials.commands.NoChargeException;
|
import com.earth2me.essentials.commands.NoChargeException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -73,6 +74,9 @@ public class SignKit extends EssentialsSign
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
else
|
||||||
|
{
|
||||||
|
throw new SignException(_("noKitPermission", "essentials.kits." + kitName));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue