Skip to content

Commit e8e1e57

Browse files
committed
Remove debug stuff
1 parent 8ea9029 commit e8e1e57

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Spigot/src/main/java/me/innectic/permissify/spigot/commands/subcommand/PlayerCommand.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ public String handleRemovePlayerFromGroup(CommandSender sender, String[] args) {
9292
if (!group.isPresent()) return PermissifyConstants.INVALID_GROUP.replace("<GROUP>", args[1]);
9393
plugin.getPermissifyAPI().getDatabaseHandler().get().removePlayerFromGroup(targetPlayer.getUniqueId(), group.get());
9494

95-
// TODO: stuff with the new permissible system that's actually done properly
96-
// if (targetPlayer.isOnline()) group.get().getPermissions().forEach(permission ->
97-
// targetPlayer.getPlayer().removeAttachment(new PermissionAttachment(plugin, permission.getPermission())));
9895
plugin.getAttachmentManager().getAttachment(targetPlayer.getUniqueId(), Optional.of(group.get().getName())).ifPresent(attachment ->
9996
group.get().getPermissions().forEach(permission -> attachment.unsetPermission(permission.getPermission())));
10097
plugin.getPermissifyAPI().getDatabaseHandler().get().updateCache(targetPlayer.getUniqueId());
@@ -199,12 +196,9 @@ public String handleRemovePermission(CommandSender sender, String[] args) {
199196
}
200197

201198
plugin.getPermissifyAPI().getDatabaseHandler().get().removePermission(targetPlayer.getUniqueId(), args[1]);
202-
if (targetPlayer.isOnline()) {
203-
System.out.println("ONRSTEORSNTRSEIOTNRSEIOTNRSEIOTNRSEIOTNRSTORSTIOERNTEIORSNTEIRSTN");
204-
199+
if (targetPlayer.isOnline())
205200
plugin.getAttachmentManager().getAttachment(targetPlayer.getUniqueId(), Optional.empty()).ifPresent(self ->
206201
self.unsetPermission(args[1]));
207-
}
208202

209203
plugin.getPermissifyAPI().getDatabaseHandler().get().updateCache(targetPlayer.getUniqueId());
210204
return PermissifyConstants.PERMISSION_REMOVED_PLAYER

0 commit comments

Comments
 (0)