VirtualHostCommandPlugin icon

VirtualHostCommandPlugin -----

Virtual Hosts for Minecraft Servers



Example Config

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.com:port
# 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

host_hub:
hostname: hub.myworld.com
ifNotInWorld: "^world_hub"
commands:
- gamemode %player% survival
- msg %player% crazy shit
- mv tp %player% world_hub


see https://github.com/cgaffga/mc-vhost/tree/main/docs
Resource Information
Author:
----------
Total Downloads: 103
First Release: Oct 30, 2023
Last Update: Nov 8, 2023
Category: ---------------
All-Time Rating:
0 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings