From 60d07b5c2f4613ac197c6f4af7ca11ab9634b13e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 7 Aug 2018 00:13:23 +1000 Subject: [PATCH] Use CommandException for `//gui` --- .../java/com/sk89q/worldedit/command/UtilityCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index fb5dad02..d8178037 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -909,9 +909,9 @@ public class UtilityCommands extends MethodCommands { desc = "Open the GUI" ) @Logging(PLACEMENT) - public void gui(Actor actor, FawePlayer fp, LocalSession session, CommandContext args) throws WorldEditException { + public void gui(Actor actor, FawePlayer fp, LocalSession session, CommandContext args) throws WorldEditException, CommandException { FormBuilder gui = Fawe.imp().getFormBuilder(); - if (gui == null) throw new UnsupportedOperationException("Not implemented"); + if (gui == null) throw new CommandException("Only supported on Pocket Edition"); Dispatcher callable = worldEdit.getPlatformManager().getCommandManager().getDispatcher(); CommandLocals locals = args.getLocals();