Check if web url is configured before download
This commit is contained in:
parent
22a9405bda
commit
8ac81b51e5
@ -21,6 +21,7 @@ package com.sk89q.worldedit.command;
|
|||||||
|
|
||||||
import com.boydti.fawe.FaweAPI;
|
import com.boydti.fawe.FaweAPI;
|
||||||
import com.boydti.fawe.config.BBC;
|
import com.boydti.fawe.config.BBC;
|
||||||
|
import com.boydti.fawe.config.Settings;
|
||||||
import com.boydti.fawe.object.FawePlayer;
|
import com.boydti.fawe.object.FawePlayer;
|
||||||
import com.boydti.fawe.object.RunnableVal2;
|
import com.boydti.fawe.object.RunnableVal2;
|
||||||
import com.boydti.fawe.object.clipboard.ReadOnlyClipboard;
|
import com.boydti.fawe.object.clipboard.ReadOnlyClipboard;
|
||||||
@ -264,6 +265,10 @@ public class ClipboardCommands {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SCHEMATIC:
|
case SCHEMATIC:
|
||||||
|
if (Settings.IMP.WEB.URL.isEmpty()) {
|
||||||
|
BBC.SETTING_DISABLE.send(player, "web.url");
|
||||||
|
return;
|
||||||
|
}
|
||||||
url = FaweAPI.upload(target, format);
|
url = FaweAPI.upload(target, format);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user