From e6d3dc6b128ff446dc4091920ea30317f57cedfe Mon Sep 17 00:00:00 2001 From: Nathan Curran <30569566+Focusvity@users.noreply.github.com> Date: Sat, 22 May 2021 14:26:48 +1000 Subject: [PATCH] TFGuilds Rewrite (FS-164, FS-133, FS-244) (#7) * TFGuilds rewrite almost completed (FS-164 FS-133 FS-244) The rewrite is nearing completion - few modifications to TFGuilds and TFM and it will be ready for production * Finalise few things * Code cleanup * Use empty list instead and true instead of false --- .idea/codeStyles/Project.xml | 18 - .idea/compiler.xml | 2 +- .idea/jarRepositories.xml | 30 +- TFGuilds.iml | 34 +- pom.xml | 14 +- .../java/me/totalfreedom/tfguilds/Common.java | 36 +- .../me/totalfreedom/tfguilds/TFGuilds.java | 132 +- .../me/totalfreedom/tfguilds/TFMBridge.java | 64 + .../tfguilds/bridge/TFMBridge.java | 72 -- .../tfguilds/command/AddModSubCommand.java | 70 ++ .../tfguilds/command/AddModSubcommand.java | 123 -- .../tfguilds/command/ChatSubCommand.java | 46 + .../tfguilds/command/ChatSubcommand.java | 50 - .../command/CreateRankSubCommand.java | 70 ++ .../command/CreateRankSubcommand.java | 87 -- .../tfguilds/command/CreateSubCommand.java | 65 + .../tfguilds/command/CreateSubcommand.java | 81 -- .../command/DeleteRankSubCommand.java | 51 + .../command/DeleteRankSubcommand.java | 63 - .../command/DeleteWarpSubCommand.java | 51 + .../command/DeleteWarpSubcommand.java | 57 - .../tfguilds/command/DisbandSubCommand.java | 60 + .../tfguilds/command/DisbandSubcommand.java | 77 -- .../tfguilds/command/GuildChatCommand.java | 50 - .../tfguilds/command/GuildChatSpyCommand.java | 25 +- .../tfguilds/command/GuildCommand.java | 216 +--- .../tfguilds/command/HelpSubCommand.java | 22 + .../tfguilds/command/HelpSubcommand.java | 48 - .../tfguilds/command/HomeSubCommand.java | 56 + .../tfguilds/command/HomeSubcommand.java | 65 - .../tfguilds/command/InfoSubCommand.java | 55 + .../tfguilds/command/InfoSubcommand.java | 60 - .../tfguilds/command/InviteSubCommand.java | 98 ++ .../tfguilds/command/InviteSubcommand.java | 92 -- .../tfguilds/command/JoinSubCommand.java | 60 + .../tfguilds/command/JoinSubcommand.java | 67 -- .../tfguilds/command/KickSubCommand.java | 70 ++ .../tfguilds/command/KickSubcommand.java | 113 -- .../tfguilds/command/LeaveSubCommand.java | 38 + .../tfguilds/command/LeaveSubcommand.java | 50 - .../tfguilds/command/ListSubCommand.java | 60 + .../tfguilds/command/ListSubcommand.java | 65 - .../tfguilds/command/MOTDSubcommand.java | 68 -- .../tfguilds/command/MotdSubCommand.java | 66 + .../tfguilds/command/RemoveModSubCommand.java | 70 ++ .../tfguilds/command/RemoveModSubcommand.java | 126 -- .../tfguilds/command/RenameSubcommand.java | 88 -- .../tfguilds/command/RosterSubCommand.java | 59 + .../tfguilds/command/RosterSubcommand.java | 60 - .../command/SetDefaultRankSubCommand.java | 71 ++ .../command/SetDefaultRankSubcommand.java | 64 - .../tfguilds/command/SetMemberSubcommand.java | 54 - .../tfguilds/command/SetOwnerSubCommand.java | 65 + .../tfguilds/command/SetOwnerSubcommand.java | 113 -- .../tfguilds/command/SetRankSubCommand.java | 66 + .../tfguilds/command/SetRankSubcommand.java | 94 -- .../tfguilds/command/SetStateSubCommand.java | 53 + .../tfguilds/command/SetStateSubcommand.java | 87 -- .../tfguilds/command/SetWarpSubCommand.java | 57 + .../tfguilds/command/SetWarpSubcommand.java | 55 - .../tfguilds/command/SubCommand.java | 10 + .../tfguilds/command/TFGuildsCommand.java | 57 +- .../tfguilds/command/TPSubcommand.java | 56 - .../tfguilds/command/TagSubCommand.java | 100 ++ .../tfguilds/command/TagSubcommand.java | 107 -- .../tfguilds/command/ToggleTagSubCommand.java | 36 + .../tfguilds/command/ToggleTagSubcommand.java | 66 - .../command/ToggleTagsSubCommand.java | 36 + .../command/ToggleTagsSubcommand.java | 36 - .../tfguilds/command/TpSubCommand.java | 51 + .../tfguilds/command/WarpSubCommand.java | 47 + .../tfguilds/command/WarpSubcommand.java | 53 - .../tfguilds/command/WarpsSubCommand.java | 37 + .../tfguilds/command/WarpsSubcommand.java | 36 - .../totalfreedom/tfguilds/config/Config.java | 40 +- .../tfguilds/config/ConfigEntry.java | 28 +- .../me/totalfreedom/tfguilds/guild/Guild.java | 1066 ++++++++++++----- .../tfguilds/guild/GuildRank.java | 69 -- .../tfguilds/guild/GuildState.java | 41 - .../tfguilds/guild/GuildWarp.java | 44 - .../me/totalfreedom/tfguilds/guild/User.java | 141 +++ .../tfguilds/listener/ChatListener.java | 65 +- .../tfguilds/listener/JoinListener.java | 29 +- .../tfguilds/sql/SQLDatabase.java | 109 +- .../tfguilds/sql/SQLGuildData.java | 229 ---- .../tfguilds/sql/SQLRankData.java | 150 --- .../tfguilds/sql/SQLUserData.java | 155 --- .../tfguilds/sql/SQLWarpData.java | 134 --- .../tfguilds/sql/SQLWorldData.java | 123 -- .../me/totalfreedom/tfguilds/user/User.java | 28 - .../me/totalfreedom/tfguilds/util/GLog.java | 30 - .../me/totalfreedom/tfguilds/util/GUtil.java | 76 +- .../tfguilds/util/PaginationList.java | 3 +- src/main/resources/config.yml | 22 +- src/main/resources/database.db | 0 src/main/resources/plugin.yml | 20 +- 96 files changed, 3018 insertions(+), 4291 deletions(-) create mode 100644 src/main/java/me/totalfreedom/tfguilds/TFMBridge.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/bridge/TFMBridge.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/AddModSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/AddModSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ChatSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ChatSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/CreateRankSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/CreateRankSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/CreateSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/CreateSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DeleteRankSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DeleteRankSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DeleteWarpSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DeleteWarpSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DisbandSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/DisbandSubcommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/GuildChatCommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/HelpSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/HelpSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/HomeSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/HomeSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/InfoSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/InfoSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/InviteSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/InviteSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/JoinSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/JoinSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/KickSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/KickSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/LeaveSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/LeaveSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ListSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ListSubcommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/MOTDSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/MotdSubCommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/RemoveModSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/RemoveModSubcommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/RenameSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/RosterSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/RosterSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetDefaultRankSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetDefaultRankSubcommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetMemberSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetOwnerSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetOwnerSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetRankSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetRankSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetStateSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetStateSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SetWarpSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/SubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/TPSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/TagSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/TagSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ToggleTagSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ToggleTagSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ToggleTagsSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/ToggleTagsSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/TpSubCommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/WarpSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/WarpSubcommand.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/command/WarpsSubCommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/command/WarpsSubcommand.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/guild/GuildRank.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/guild/GuildState.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/guild/GuildWarp.java create mode 100644 src/main/java/me/totalfreedom/tfguilds/guild/User.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/sql/SQLGuildData.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/sql/SQLRankData.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/sql/SQLUserData.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/sql/SQLWarpData.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/sql/SQLWorldData.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/user/User.java delete mode 100644 src/main/java/me/totalfreedom/tfguilds/util/GLog.java delete mode 100644 src/main/resources/database.db diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 86bb373..9898a0e 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -9,24 +9,6 @@ - - - -