{"action":"closed","issue":{"url":"https://api.github.com/repos/lucko/LuckPerms/issues/48","repository_url":"https://api.github.com/repos/lucko/LuckPerms","labels_url":"https://api.github.com/repos/lucko/LuckPerms/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/lucko/LuckPerms/issues/48/comments","events_url":"https://api.github.com/repos/lucko/LuckPerms/issues/48/events","html_url":"https://github.com/lucko/LuckPerms/issues/48","id":191412793,"number":48,"title":"Pex migration issues with default group and chat prefixes","user":{"login":"LemADEC","id":4776032,"avatar_url":"https://avatars.githubusercontent.com/u/4776032?v=3","gravatar_id":"","url":"https://api.github.com/users/LemADEC","html_url":"https://github.com/LemADEC","followers_url":"https://api.github.com/users/LemADEC/followers","following_url":"https://api.github.com/users/LemADEC/following{/other_user}","gists_url":"https://api.github.com/users/LemADEC/gists{/gist_id}","starred_url":"https://api.github.com/users/LemADEC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LemADEC/subscriptions","organizations_url":"https://api.github.com/users/LemADEC/orgs","repos_url":"https://api.github.com/users/LemADEC/repos","events_url":"https://api.github.com/users/LemADEC/events{/privacy}","received_events_url":"https://api.github.com/users/LemADEC/received_events","type":"User","site_admin":false},"labels":[{"id":498622302,"url":"https://api.github.com/repos/lucko/LuckPerms/labels/migration%20bug","name":"migration bug","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"lucko","id":8352868,"avatar_url":"https://avatars.githubusercontent.com/u/8352868?v=3","gravatar_id":"","url":"https://api.github.com/users/lucko","html_url":"https://github.com/lucko","followers_url":"https://api.github.com/users/lucko/followers","following_url":"https://api.github.com/users/lucko/following{/other_user}","gists_url":"https://api.github.com/users/lucko/gists{/gist_id}","starred_url":"https://api.github.com/users/lucko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucko/subscriptions","organizations_url":"https://api.github.com/users/lucko/orgs","repos_url":"https://api.github.com/users/lucko/repos","events_url":"https://api.github.com/users/lucko/events{/privacy}","received_events_url":"https://api.github.com/users/lucko/received_events","type":"User","site_admin":false},"assignees":[{"login":"lucko","id":8352868,"avatar_url":"https://avatars.githubusercontent.com/u/8352868?v=3","gravatar_id":"","url":"https://api.github.com/users/lucko","html_url":"https://github.com/lucko","followers_url":"https://api.github.com/users/lucko/followers","following_url":"https://api.github.com/users/lucko/following{/other_user}","gists_url":"https://api.github.com/users/lucko/gists{/gist_id}","starred_url":"https://api.github.com/users/lucko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucko/subscriptions","organizations_url":"https://api.github.com/users/lucko/orgs","repos_url":"https://api.github.com/users/lucko/repos","events_url":"https://api.github.com/users/lucko/events{/privacy}","received_events_url":"https://api.github.com/users/lucko/received_events","type":"User","site_admin":false}],"milestone":null,"comments":18,"created_at":"2016-11-24T01:12:10Z","updated_at":"2016-12-12T19:39:03Z","closed_at":"2016-12-12T19:39:03Z","body":"As of LuckPermsSponge-2.15.5.jar, after migrating from Pex, we're having several issues.\r\n\r\nIn Pex, a user with no group is defaulting to the \"member\" group. Also, prefix are prioritized using the \"weight\" option. Here's an extract from our Pex configuration file:\r\n```\r\n{\r\n    \"subjects\": {\r\n        \"default\": {\r\n            \"default\": [\r\n                {\r\n                    \"contexts\": {\r\n                        \"localip\": \"127.0.0.1\"\r\n                    },\r\n                    \"permissions-default\": 0\r\n                },\r\n...\r\n            \"user\": [\r\n                {\r\n                    \"parents\": [\r\n                        \"group:member\"\r\n                    ],\r\n                    \"permissions-default\": 0\r\n                }\r\n            ]\r\n        },\r\n        \"group\": {\r\n            \"default\": [\r\n                {\r\n                    \"options\": {\r\n                        \"prefix\": \"&7Guest \"\r\n                    },\r\n                    \"permissions-default\": -1\r\n                }\r\n            ],\r\n            \"member\": [\r\n                {\r\n                    \"options\": {\r\n                        \"weight\": \"99999\",\r\n                        \"rank-ladder\": \"staff\",\r\n                        \"rank\": \"1000\",\r\n                        \"prefix\": \"&7Member \"\r\n                    },\r\n                    \"permissions-default\": 0,\r\n...\r\n                }\r\n            ],\r\n            \"moderator\": [\r\n                {\r\n                    \"parents\": [\r\n                        \"group:minimod\"\r\n                    ],\r\n                    \"options\": {\r\n                        \"weight\": \"10400\",\r\n                        \"rank-ladder\": \"staff\",\r\n                        \"rank\": \"400\",\r\n                        \"prefix\": \"&bMod \"\r\n                    }\r\n                }\r\n            ],\r\n            \"minimod\": [\r\n                {\r\n                    \"options\": {\r\n                        \"weight\": \"10450\",\r\n                        \"rank-ladder\": \"staff\",\r\n                        \"rank\": \"450\",\r\n                        \"prefix\": \"&bMiniMod \"\r\n                    },\r\n                    \"parents\": [\r\n                        \"group:member\"\r\n                    ]\r\n                }\r\n            ],\r\n...\r\n```\r\n\r\nAfter migrating to LP, I've noted the following issues:\r\n1- users with no group defined, are attached to the \"default\" group.\r\nTo fix this, I've added \"member\" group has a parent of \"default\" group\r\nand I've cleared the \"default\" group prefix.\r\n\r\n2- staff users (a moderator) remain with the \"Member \" prefix.\r\nFrom what I understand, all chat prefixes from all groups have the same priority of 100 in LP.\r\nLooks like Pex weight needs to be converted into \"chat priority\" during migration.\r\n\r\n3- I can't remove the migrated prefixes with commands:\r\n```\r\n>lp group moderator meta info\r\n[19:59:47] [Server thread/INFO] [nucleus]: Server ran the command: /lp group moderator meta info\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] moderator's Prefixes\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> 100 - \"Member \" (inherited from member)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> 100 - \"MiniMod \" (inherited from minimod)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> 100 - \"Mod \" (inherited from self)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] moderator has no suffixes.\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] moderator's Meta\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> rank = \"450\" (inherited from minimod)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> rank-ladder = \"staff\" (inherited from self)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> weight = \"10450\" (inherited from minimod)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> weight = \"99999\" (inherited from member)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> rank = \"1000\" (inherited from member)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> weight = \"10400\" (inherited from self)\r\n[19:59:47] [pool-3-thread-38/INFO]: [LP] -> rank = \"400\" (inherited from self)\r\n>lp group moderator meta removeprefix 100 \"Mod \"\r\n[19:59:59] [Server thread/INFO] [nucleus]: Server ran the command: /lp group moderator meta removeprefix 100 \"Mod \"\r\n[19:59:59] [pool-3-thread-42/INFO]: [LP] moderator doesn't have that prefix set.\r\n>lp group moderator meta addprefix 10450 \"Mod \"\r\n[20:00:07] [Server thread/INFO] [nucleus]: Server ran the command: /lp group moderator meta addprefix 10450 \"Mod \"\r\n[20:00:07] [pool-3-thread-40/INFO]: [LP] moderator had prefix \"Mod \" set at a priority of 10450.\r\n[20:00:07] [pool-3-thread-40/INFO]: [LP] (Group data was saved to storage)\r\n>lp group moderator meta removeprefix 10450 \"Mod \"\r\n[20:00:14] [Server thread/INFO] [nucleus]: Server ran the command: /lp group moderator meta removeprefix 10450 \"Mod \"\r\n[20:00:14] [pool-3-thread-40/INFO]: [LP] moderator had prefix \"Mod \" at priority 10450 removed.\r\n[20:00:14] [pool-3-thread-40/INFO]: [LP] (Group data was saved to storage)\r\n```"}}
{"actor":{"display_login":"lucko"}}