file in
plugins/VirtualHostCommandPlugin/config.yml
# example config file for VirtualHostCommand bukkit plugin # Location: plugins/VirtualHostCommandPlugin/config.yml vhosts: host_example: # the hoostname is matched agains the joining hostname via starts-with, so parts work as well # you can also add the port, sub.domain.comort # it's mandatory, and always case-insensitive hostname: example.com # (optional) only run if player joined this world(s) ifInWorld: "world_some_regex" # (optional) only run if player did not join this world(s) # if ifInWorld and ifNotInWorld present, they must be both true ifNotInWorld: "world_some_regex" # (optional) MOTD for this vhost # NOTE: this only works if you server implementation returns a hostname in the ping event, many don't # for paper-mc we have added a workaround to fetch the vhost hostname pinged via reflection. motd: "some colorfull MOTD server message\nmultiline if you like!" # (optional) server icon filename, format like server-icon.png, same root directory # NOTE: same restrictions as for 'motd' config option apply icon: server-icon-example.png
# List of commands to be executed if joining via this hostname commands: # he following placeholders are allowd: # %player% , %hostname% and %port% - some command ... - another cmmand with %player% to replace with player name - msg %player% haha it works from %hostname%
host_example2: # example with an IP hostname: "123.45.67.89" commands: - some command ... - another cmmand with %player% to replace with player name - msg %player% haha it works