Skip to content

Commit 5cc0a2b

Browse files
committed
fix: lock the player on edit
1 parent 23f2492 commit 5cc0a2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
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
}

0 commit comments

Comments
 (0)