mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 20:25:45 +01:00
Finalize matching item display workaround
This commit is contained in:
parent
d9292e0222
commit
f14040c7fe
@ -735,22 +735,6 @@ public class QuestMainPrompt extends QuestsEditorNumericPrompt {
|
||||
// Check/add newly made item
|
||||
if (context.getSessionData("tempStack") != null) {
|
||||
final ItemStack stack = (ItemStack) context.getSessionData("tempStack");
|
||||
// TODO - Delete this and questGUIError string
|
||||
/*boolean failed = false;
|
||||
for (final IQuest quest : plugin.getLoadedQuests()) {
|
||||
if (quest.getGUIDisplay() != null) {
|
||||
if (ItemUtil.compareItems(stack, quest.getGUIDisplay(), false) == 0) {
|
||||
String error = Lang.get("questGUIError");
|
||||
error = error.replace("<quest>", ChatColor.DARK_PURPLE + quest.getName() + ChatColor.RED);
|
||||
context.getForWhom().sendRawMessage(ChatColor.RED + error);
|
||||
failed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!failed) {
|
||||
context.setSessionData(CK.Q_GUIDISPLAY, context.getSessionData("tempStack"));
|
||||
}*/
|
||||
if (stack != null) {
|
||||
context.setSessionData(CK.Q_GUIDISPLAY, stack.clone());
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ questWGSetRegion: "Set region start"
|
||||
questWGPrompt: "Enter WorldGuard region, <clear>, <cancel>"
|
||||
questWGInvalidRegion: "<region> is not a valid WorldGuard region!"
|
||||
questWGRegionCleared: "Quest region cleared."
|
||||
questGUIError: "Error: That item is already being used as the GUI display for the quest <quest>."
|
||||
questCurrentItem: "Current item:"
|
||||
questGUICleared: "Quest GUI item display cleared."
|
||||
questDeleted: "Quest deleted! Quest and action data has been reloaded."
|
||||
|
Loading…
Reference in New Issue
Block a user