Commit Graph

125 Commits

Author SHA1 Message Date
Teriuihi 16996e95e2 handle luckperm user being null 2022-01-11 01:05:30 +01:00
Teriuihi 5cd8f5c894 use player_uuid instead of uuid 2022-01-11 01:05:13 +01:00
Teriuihi a287e11d84 Check if they are active instead of just if they have an entry 2022-01-11 01:05:01 +01:00
Teriuihi e26a3c23c6 Updated everything, added a check for if someone leaves the discord so it auto unlinks them if they do, and added auto bans/unbans based on litebans bans/unbans 2021-12-27 05:00:51 +01:00
destro174 bad541cc65 update dependencies and repositories 2021-12-26 14:02:47 +01:00
destro174 c44be4ebd7 make jda public for api usage 2021-09-23 17:22:30 +02:00
destro174 89549ef12f add publishing plugin to gradle 2021-09-22 20:30:05 +02:00
destro174 050da40cac fix exclusions in shadowjar task 2021-09-22 17:37:58 +02:00
Teriuihi 5236b11241 check if nick is null 2021-09-20 23:50:26 +02:00
Teriuihi 80a6c5df7e Fixed issues with discordlink 2021-09-20 23:41:14 +02:00
Teriuihi 1a70fd4fd4 changed stuff for whitelistkick 2021-09-20 23:00:45 +02:00
Teriuihi 6100adaf93 Removed a todo 2021-09-20 04:04:28 +02:00
Teriuihi 9744eddd35 Fixed some minor syncing issues 2021-09-20 04:03:44 +02:00
Teriuihi 1c2eeec78a Add and remove roles from internal cache where needed 2021-09-20 03:29:52 +02:00
Teriuihi 8b42cfea43 Get the key not the whole value 2021-09-20 03:29:25 +02:00
Teriuihi e690da0731 Don't try to sink if player isn't linked 2021-09-20 03:29:07 +02:00
Teriuihi f1cb98da10 Sync roles 2021-09-20 03:05:27 +02:00
Teriuihi 42931b2761 Fixed being unable to unlink 2021-09-20 02:36:47 +02:00
Teriuihi 722e1ea01b This should work but it doesn't 2021-09-18 15:03:42 +02:00
Teriuihi cfbc84c8b6 Don't do both 2021-09-18 14:56:59 +02:00
Teriuihi d4e3b9504a Notify user when they aren't linked and try to unlink 2021-09-17 20:05:57 +02:00
Teriuihi c3ed2fb7c4 Added message to show unlinked worked 2021-09-17 16:31:33 +02:00
Teriuihi 44a335bf12 Changed channelId to long 2021-09-17 16:31:21 +02:00
Teriuihi 49e53fb01c Allow linking for unlinked players while the server is whitelisted 2021-09-17 15:59:01 +02:00
destro174 74a98e340b Add listener for WhitelistKickEvent 2021-09-17 08:37:30 +02:00
Teriuihi 7a0d49fcb6 Added discord nick command 2021-09-16 18:13:34 +02:00
Teriuihi 6afb451be1 Don't return null for suggest 2021-09-16 17:59:37 +02:00
Teriuihi 5f2c099981 Don't return null for suggest 2021-09-16 17:59:30 +02:00
Teriuihi b932bb5045 Don't return null for suggest 2021-09-16 17:59:23 +02:00
Teriuihi 64fb975cfe use uuid 2021-09-16 17:59:12 +02:00
Teriuihi 529c2efe5a Fixed using incorrect function 2021-09-16 17:58:56 +02:00
Teriuihi 4ae5e16cbc Fixed not updating the user when updating roles 2021-09-16 17:58:35 +02:00
Teriuihi 94b7855da3 Let the player know if they linked correctly 2021-09-16 17:57:32 +02:00
Teriuihi 235e60cf56 Removed unused imports
return all players for suggest
2021-09-16 17:57:08 +02:00
Teriuihi 34463ae4b8 Fixed incorrect naming in database 2021-09-16 17:56:29 +02:00
Teriuihi 17d8c5e4e2 Removed alias 2021-09-16 17:56:09 +02:00
Teriuihi fb67d7c6c4 Only show commands you have perms for 2021-09-16 17:55:49 +02:00
Teriuihi 242605c6fb Converted to long for discord_id for database and removed unneeded data 2021-09-16 16:58:15 +02:00
Teriuihi 899ddb8703 Add boolean for nicknames remove unneeded columns 2021-09-16 16:04:45 +02:00
Teriuihi d28aa77cc7 Add boolean for nicknames 2021-09-16 16:04:35 +02:00
Teriuihi 3671d33dc7 Add boolean for nicknames allow changing user/nick name 2021-09-16 16:04:20 +02:00
Teriuihi 4d8b7b60f6 Sync nickname if needed 2021-09-16 16:03:48 +02:00
Teriuihi f6276227b9 Added changeNick funtion 2021-09-16 15:53:07 +02:00
Teriuihi abd6db884d Use nick function in the bot class 2021-09-16 15:52:55 +02:00
Teriuihi d4cf97754d Sync names on player join 2021-09-16 15:52:23 +02:00
Teriuihi 3c5cdeb8f9 Added LINKED_ROLE_ID setting 2021-09-16 15:36:52 +02:00
Teriuihi 87691e80b3 Added function to get UUID from playerCacheCode 2021-09-16 15:36:33 +02:00
Teriuihi 635e8884ef Removed cache table
Added account_roles table
Added function to add roles to a discord link user
2021-09-16 15:36:15 +02:00
Teriuihi 5f8dc66320 Added DiscordUnlink to loaded commands 2021-09-16 15:35:25 +02:00
Teriuihi 3c8173fff9 Switched to modular role system 2021-09-16 15:35:04 +02:00