From f63f652edbc5c38d1681fb4310d0b034e529b377 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 18 Mar 2018 10:09:21 +0000 Subject: [PATCH] Fix parentadd and parentremove sponge commands --- .../java/me/lucko/luckperms/sponge/commands/ParentAdd.java | 4 ++-- .../java/me/lucko/luckperms/sponge/commands/ParentRemove.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentAdd.java b/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentAdd.java index c43922d6..cb20e851 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentAdd.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentAdd.java @@ -36,7 +36,7 @@ import me.lucko.luckperms.common.locale.command.CommandSpec; import me.lucko.luckperms.common.plugin.LuckPermsPlugin; import me.lucko.luckperms.common.sender.Sender; import me.lucko.luckperms.common.utils.Predicates; -import me.lucko.luckperms.sponge.service.LuckPermsService; +import me.lucko.luckperms.sponge.service.model.LPPermissionService; import me.lucko.luckperms.sponge.service.model.LPSubject; import me.lucko.luckperms.sponge.service.model.LPSubjectCollection; import me.lucko.luckperms.sponge.service.model.LPSubjectData; @@ -56,7 +56,7 @@ public class ParentAdd extends SubCommand { String name = args.get(1); ImmutableContextSet contextSet = ArgumentParser.parseContextSponge(2, args); - LuckPermsService service = Sponge.getServiceManager().provideUnchecked(LuckPermsService.class); + LPPermissionService service = Sponge.getServiceManager().provideUnchecked(LPPermissionService.class); if (service.getLoadedCollections().keySet().stream().map(String::toLowerCase).noneMatch(s -> s.equalsIgnoreCase(collection))) { MessageUtils.sendPluginMessage(sender, "Warning: SubjectCollection '&4" + collection + "&c' doesn't already exist."); } diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentRemove.java b/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentRemove.java index fd6b9408..03ee51fb 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentRemove.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/commands/ParentRemove.java @@ -36,7 +36,7 @@ import me.lucko.luckperms.common.locale.command.CommandSpec; import me.lucko.luckperms.common.plugin.LuckPermsPlugin; import me.lucko.luckperms.common.sender.Sender; import me.lucko.luckperms.common.utils.Predicates; -import me.lucko.luckperms.sponge.service.LuckPermsService; +import me.lucko.luckperms.sponge.service.model.LPPermissionService; import me.lucko.luckperms.sponge.service.model.LPSubject; import me.lucko.luckperms.sponge.service.model.LPSubjectCollection; import me.lucko.luckperms.sponge.service.model.LPSubjectData; @@ -56,7 +56,7 @@ public class ParentRemove extends SubCommand { String name = args.get(1); ImmutableContextSet contextSet = ArgumentParser.parseContextSponge(2, args); - LuckPermsService service = Sponge.getServiceManager().provideUnchecked(LuckPermsService.class); + LPPermissionService service = Sponge.getServiceManager().provideUnchecked(LPPermissionService.class); if (service.getLoadedCollections().keySet().stream().map(String::toLowerCase).noneMatch(s -> s.equalsIgnoreCase(collection))) { MessageUtils.sendPluginMessage(sender, "Warning: SubjectCollection '&4" + collection + "&c' doesn't exist."); }