Sueta
JO

JoinCommands

0.0.5

Execute console commands for a player who has joined the server for the first time.

·Plugin

Untitled-1.png
This is a super simple plugin I created to execute console commands to players who join the server for the first time, or every time they join.


Information.png

This plugin will execute commands as the console when a player joins the server. You can execute commands for the first time a player joins the server, and also every time a player joins the server.

This plugin will execute the commands as the console.

Pictures

2018-06-28_19.49.02.png 2018-06-28_19.49.32.png 2018-06-28_19.50.01.png 2018-06-30_15.45.56.png


Features.png

  1. You can use formatting codes in the config.yml. Use the symbol '&' This will also work in the command too.
  2. Use the variable '[player]' in the command for the player that joins.
  3. Players with the permission "joincommands.admin" or if they are OP they will receive a message if the plugin has an update available. You can enable or disable this feature in the config. You can also change what the message sent says.

Commands.png

In order to use the commands the player will need the permission "joincommands.admin". Or the player needs to be OP.

If using the commands to change the config.yml be sure the type the command word for word when deleting.

  • /joincommands
    • Gives plugin information
  • /joincommands view <first|every>
    • Show commands from either the First Join list or Every Join list
  • /joincommands enable <first|every>
    • Enable or disable the commands
  • /joincommands addf <command>
    • Add a command to the First Join list
  • /joincommands adde <command>
    • Add a command to the Every Join list
  • /joincommands deletef <command>
    • Delete a command from the First Join list
  • /joincommands deletee <command>
    • Delete a command from the Every Join list
  • /joincommands reload
    • Reloads the plugin

config.png

##################################################################
# Use the variable [player] as the player that joins the server. #
# These commands will only execute for players that have never   #
#         joined the server before.                              #
##################################################################
first-join:
  enable: true
  commands:
     - 'eco give [player] 200 '
    - 'kit tools [player] '

##################################################################
# Use the variable [player] as the player that joins the server. #
# These commands will only execute for the player that joined,   #
#   every time he/she joins.                                     #
##################################################################
every-join:
  enable: true
  commands:
    - 'tell [player] &2Welcome back to the server! '

##########################################################################################
# If enable is set to 'true' - when OP's or players with permission 'joincommands.admin' #
# will recieve the message anytime they join                                             #
# Variables are: [currentVersion] and [availableVersion] - I think are self explanatory  #
##########################################################################################
op-message:
  enable: true
  message:
   - '&e&l-- &3JoinCommands &e&l- &4&lUpdate Available! &e&l--'
  - '&aVersion you are using: &e[currentVersion]'
  - '&aNewest version available: &e[availableVersion]'
  - '&6Please contact your server owner about this issue.'

Similar projects

Plugin →