Run explicit non-thread-safe setGameMode sync
This commit is contained in:
parent
41bad6189e
commit
466fb8cab9
@ -89,8 +89,13 @@ public class AsynchronousJoin implements AsynchronousProcess {
|
|||||||
|
|
||||||
if (service.getProperty(RestrictionSettings.FORCE_SURVIVAL_MODE)
|
if (service.getProperty(RestrictionSettings.FORCE_SURVIVAL_MODE)
|
||||||
&& !service.hasPermission(player, PlayerStatePermission.BYPASS_FORCE_SURVIVAL)) {
|
&& !service.hasPermission(player, PlayerStatePermission.BYPASS_FORCE_SURVIVAL)) {
|
||||||
|
bukkitService.runTask(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
player.setGameMode(GameMode.SURVIVAL);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (service.getProperty(HooksSettings.DISABLE_SOCIAL_SPY)) {
|
if (service.getProperty(HooksSettings.DISABLE_SOCIAL_SPY)) {
|
||||||
pluginHooks.setEssentialsSocialSpyStatus(player, false);
|
pluginHooks.setEssentialsSocialSpyStatus(player, false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user