mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-01-16 13:21:32 +01:00
Fix 'meta settemp' command using duration as the server context (#421)
This commit is contained in:
parent
77956d69ad
commit
3951725852
@ -71,7 +71,7 @@ public class MetaSetTemp extends SharedSubCommand {
|
|||||||
String key = args.get(0);
|
String key = args.get(0);
|
||||||
String value = args.get(1);
|
String value = args.get(1);
|
||||||
long duration = ArgumentUtils.handleDuration(2, args);
|
long duration = ArgumentUtils.handleDuration(2, args);
|
||||||
MutableContextSet context = ArgumentUtils.handleContext(2, args, plugin);
|
MutableContextSet context = ArgumentUtils.handleContext(3, args, plugin);
|
||||||
TemporaryModifier modifier = plugin.getConfiguration().get(ConfigKeys.TEMPORARY_ADD_BEHAVIOUR);
|
TemporaryModifier modifier = plugin.getConfiguration().get(ConfigKeys.TEMPORARY_ADD_BEHAVIOUR);
|
||||||
|
|
||||||
if (ArgumentPermissions.checkContext(plugin, sender, permission, context)) {
|
if (ArgumentPermissions.checkContext(plugin, sender, permission, context)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user