Skip to content

Commit 6c2d182

Browse files
authored
Merge pull request #43 from AutoPluginsDev/fix-input-chat-lock
Fix input chat lock
2 parents 94c911f + aecf103 commit 6c2d182

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/fr/lumi/Commandes/CommandRunnerCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
196196
if (acmd == null) return true;
197197

198198
if (args.length == 2) {
199+
plugin.getModificationLock().lock(((Player)player).getUniqueId().toString());
199200
plugin.getAcmdGUIEditor().openACMDEditor((Player) sender, acmd, plugin.getcommandList().indexOf(acmd));
200201
return true;
201202
}

src/main/java/fr/lumi/Util/CommandEditor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,20 @@ public void GuiClickEvent(InventoryClickEvent e) {
158158
case 3:
159159
waitForChat = "period";
160160

161-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the period in the chat in tick (format : integer , type exit to exit) :"));
161+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the period in the chat in tick (format : integer, type exit to exit) :"));
162162
closeInventory(p);
163163
break;
164164

165165
case 4:
166166
waitForChat = "delay";
167167

168-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the delay in the chat in tick (format : integer , type exit to exit) :"));
168+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the delay in the chat in tick (format : integer, type exit to exit) :"));
169169
closeInventory(p);
170170
break;
171171
case 5:
172172
waitForChat = "hour";
173173

174-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (format : 18H02 , type exit to exit) :"));
174+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (example : 18H02, type exit to exit) :"));
175175
closeInventory(p);
176176
break;
177177
case 6:
@@ -189,7 +189,7 @@ public void GuiClickEvent(InventoryClickEvent e) {
189189
case 8:
190190
waitForChat = "message";
191191

192-
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (format : & usables , type exit to exit) :"));
192+
p.sendMessage(plugin.getUt().replacePlaceHoldersForPlayerPlgVar("&4Type the hour in the chat (tips : use & + color , type \"exit\" to exit) :"));
193193
closeInventory(p);
194194
break;
195195
case 9:

0 commit comments

Comments
 (0)