diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml new file mode 100644 index 0000000..05a3cd6 --- /dev/null +++ b/src/main/resources/config.yml @@ -0,0 +1,16 @@ +# Uses MiniMessage format and any PlaceholderAPI placeholders. +# You can also add and at either end of the playername. +joinMessage: "%player_name% joined the game" +leaveMessage: "%player_name% left the game" + +# You can set these permissions to whatever you want. +# Just make sure they match the permissions in your permissions plugin. +permissions: + silentjoin: "essentials.silentjoin" + silentquit: "essentials.silentquit" + vanish: "essentials.vanish" # This should be the permission to go into vanish-mode (handled by your vanish plugin e.g. EssentialsX). + +# Set this to whatever command handles vanish on your server. +commands: + vanish-on: "essentials:vanish on" + vanish-off: "essentials:vanish off" \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..4449dfd --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,23 @@ +name: CustomJoinLeave +version: '${version}' +main: me.zepsizola.customjoinleave.CustomJoinLeave +api-version: '1.20' + +folia-supported: true + +softdepend: [PlaceholderAPI, LuckPerms] +loadbefore: [PlaceholderAPI, LuckPerms] + +commands: + vanishjoin: + description: "Sends a fake join message to all players." + usage: "/vanishjoin [player]" + aliases: [vj, vjoin] + permission: essentials.vanish + permission-message: "You do not have permission to use this command" + vanishleave: + description: "Sends a fake leave message to all players." + usage: "/vanishleave [player]" + aliases: [vl, vleave] + permission: essentials.vanish + permission-message: "You do not have permission to use this command" \ No newline at end of file