Files
discord-link.sk
README.txt
Code
2 65
discord-link.sk
# Discord Link Script
# Author: Generated
# Version: 1.0
# Description: Provides clickable Discord link commands
options:
# Configure your Discord invite link or website URL
discord-url: https://discord.gg/yourserver
# Customize the messages (use & for color codes)
prefix: &6[Discord]&r
main-message: &7Join our Discord server!
clickable-text: &b&nClick Here to Join
hover-text: &eClick to open Discord invite!
# Border decoration (optional)
border: &7&m―――――――――――――――――――
on script load:
send "{@prefix} Discord Link Script v1.0 loaded!" to console
# Main /discord command
command /discord:
aliases: /dc
trigger:
send "" to player
send "{@border}" to player
send "" to player
send " {@prefix} {@main-message}" to player
send "" to player
send " {@clickable-text}" to player
send "" to player
send "{@border}" to player
# Make the clickable text open the URL
execute player command "/discordlink"
# Hidden command that handles the clickable link
command /discordlink:
trigger:
# This creates a clickable JSON text component
send "&7Join our Discord server!" to player
send formatted text "&b&n[Click Here to Join Discord]" with hover "{@hover-text}" with click action to open url "{@discord-url}" to player