Fix 'meta settemp' command using duration as the server context (#421)

This commit is contained in:
Luck 2017-08-05 23:46:19 +02:00
parent 77956d69ad
commit 3951725852
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -71,7 +71,7 @@ public class MetaSetTemp extends SharedSubCommand {
String key = args.get(0);
String value = args.get(1);
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);
if (ArgumentPermissions.checkContext(plugin, sender, permission, context)) {