Check settings async
Based on https://github.com/AuthMe/AuthMeReloaded/commit/6be58ee2e2d467a1cb94148a3dff0ae91057af58#commitcomment-18154945
This commit is contained in:
@@ -86,14 +86,14 @@ public class AsynchronousUnregister implements AsynchronousProcess {
|
||||
|
||||
// Apply blind effect
|
||||
final int timeout = service.getProperty(RestrictionSettings.TIMEOUT) * TICKS_PER_SECOND;
|
||||
if (service.getProperty(RegistrationSettings.APPLY_BLIND_EFFECT)) {
|
||||
bukktiService.runTask(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (service.getProperty(RegistrationSettings.APPLY_BLIND_EFFECT)) {
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, timeout, 2));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
service.send(player, MessageKey.UNREGISTERED_SUCCESS);
|
||||
ConsoleLogger.info(player.getName() + " unregistered himself");
|
||||
|
||||
Reference in New Issue
Block a user