Setup:
- Drop the plugin file into your plugins folder
- Restart the server
- Configure the config.yml file
- Restart again
Commands:
/hreloadstream - reload the stream connection
Configuring:
Default configuration looks like this:
Code (YAML):
tiktok:
host_name
:
"yourusername"
# Required
use_room_id
: false
session_id
:
"your_session_id"
# Optional
room_id
:
"your_room_id"
# Optional
minecraft:
streamers_name
:
# these players will be affected in PLAYERS_CMD and so on
-
"Francexo"
-
"streamer2"
-
"streamer3"
actions:
FOLLOW
:
"cmd:say {user} followed"
SUBSCRIBE
:
"cmd:say {user} subscribed"
GIFT
:
"cmd:say {user} donated {amount}x {text}"
COMMENT
:
"cmd:say {user} commented: {text}"
LIKE
:
"cmd:say test"
gifts_actions:
ROSE
:
"cmd:say {user} donated {amount}x Rose"
To setup your connection you just need to change
host_name with your tiktok username (@), without @.
Now, change the streamers nicknames into the desired ones, those will be the players affected by commands and actions!
Valid action types are:
Code (Text):
CMD:(command), PLAYER_CMD:(command), SUMMON:(mob_type)
Valid event types are:
Code (Text):
FOLLOW, COMMENT, SUBSCRIBE, GIFT, LIKE
Valid Gift types can be found
here (TikTokLiveJava by jwdeveloper)