Give error when using hosted server & gui.

This commit is contained in:
CocoTheOwner 2021-02-03 16:08:53 +01:00
parent 4700c3711c
commit 72b645916f

View File

@ -7,6 +7,7 @@ import com.volmit.iris.util.MortarCommand;
import com.volmit.iris.util.MortarSender; import com.volmit.iris.util.MortarSender;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import java.awt.HeadlessException;
public class CommandIrisPregen extends MortarCommand public class CommandIrisPregen extends MortarCommand
{ {
@ -88,6 +89,8 @@ public class CommandIrisPregen extends MortarCommand
return true; return true;
} catch (NullPointerException e){ } catch (NullPointerException e){
sender.sendMessage("No radius specified"); sender.sendMessage("No radius specified");
} catch (HeadlessException e){
sender.sendMessage("If you are seeing this and are using a hosted server, please turn off 'useServerLaunchedGUIs' in the settings");
} }
return true; return true;