mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-08 15:46:54 +02:00
Throw an error if user doesn't have permission to use kit sign.
f930ff48a2
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.ess3.signs.signs;
|
||||
|
||||
import static net.ess3.I18n._;
|
||||
import java.util.Locale;
|
||||
import net.ess3.api.ChargeException;
|
||||
import net.ess3.api.IEssentials;
|
||||
@@ -72,6 +73,9 @@ public class SignKit extends EssentialsSign
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
else
|
||||
{
|
||||
throw new SignException(_("noKitPermission", "essentials.kits." + kitName));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user