diff --git a/src/main/java/net/Indyuce/mmocore/gui/api/EditableInventory.java b/src/main/java/net/Indyuce/mmocore/gui/api/EditableInventory.java index f8931f16..20a5219c 100644 --- a/src/main/java/net/Indyuce/mmocore/gui/api/EditableInventory.java +++ b/src/main/java/net/Indyuce/mmocore/gui/api/EditableInventory.java @@ -83,7 +83,7 @@ public abstract class EditableInventory { String function = config.contains("function") ? config.getString("function").toLowerCase() : ""; if (function.startsWith("trigger:")) - return new TriggerItem(config, function.substring("trigger:".length())); + return new TriggerItem(config, function.substring(8)); return load(function, config); }