diff --git a/src/main/java/ch/njol/skript/effects/EffOpenInventory.java b/src/main/java/ch/njol/skript/effects/EffOpenInventory.java index e0f64e32202..460f714e2d3 100644 --- a/src/main/java/ch/njol/skript/effects/EffOpenInventory.java +++ b/src/main/java/ch/njol/skript/effects/EffOpenInventory.java @@ -73,8 +73,7 @@ private static enum OpenableInventorySyntax { "Opening a stone cutter inventory requires PaperSpigot."), WORKBENCH("(crafting [table]|workbench)"); - @Nullable - private String methodError; + private @Nullable String methodError; @Nullable private Version version; @@ -174,8 +173,7 @@ public boolean init(Expression[] exprs, int matchedPattern, Kleenean isDelaye /** * Method because SecOpenInventory also uses this code block. */ - @Nullable - public static Inventory createInventory(InventoryType type) { + public static @Nullable Inventory createInventory(InventoryType type) { if (!type.isCreatable()) return null; try { diff --git a/src/main/java/ch/njol/skript/sections/SecOpenInventory.java b/src/main/java/ch/njol/skript/sections/SecOpenInventory.java index e66e2c439ec..5c915f3e915 100644 --- a/src/main/java/ch/njol/skript/sections/SecOpenInventory.java +++ b/src/main/java/ch/njol/skript/sections/SecOpenInventory.java @@ -1,21 +1,3 @@ -/** - * This file is part of Skript. - * - * Skript is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Skript is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Skript. If not, see . - * - * Copyright Peter Güttinger, SkriptLang team and contributors - */ package ch.njol.skript.sections; import java.util.List; @@ -52,7 +34,7 @@ @Examples({ "show chest inventory to player:", "\tset slot 1 of event-inventory to stone named \"example\"", - "open event-inventory to all players" + "\topen event-inventory to all players" }) @Since("INSERT VERSION") public class SecOpenInventory extends Section { @@ -69,8 +51,7 @@ public Inventory getInventory() { } @Override - @NotNull - public HandlerList getHandlers() { + public @NotNull HandlerList getHandlers() { throw new IllegalStateException(); } }