itzrealorionx

Make a skript like the plugin deluxe hub to work in hub/main worl

Kodari AI
KodariJun 8 at 4:28 pm 21
DeluxeHubSkript
A feature-rich hub/lobby management Skript inspired by DeluxeHub. Includes hotbar navigation items, double jump, player visibility toggle, anti-build protection, no hunger/damage, join effects with titles, a compass-based server navigator GUI, scoreboard sidebar, and admin controls. Fully configurable via options. Designed for hub/main world servers using only vanilla Skript with no extra addons required.

📦 Files Created

File
Purpose
hub/hub_core.sk
Core hub logic — the main file
hub/hub_scoreboard.sk
Sidebar scoreboard (optional, needs SkBee)
hub/hub_effects.sk
Join effects, particles, VIP messages

🚀 Setup Instructions

  1. Place all files in plugins/Skript/scripts/hub/

  2. Open hub_core.sk and set hub-world: to your actual world name

  3. Run /sk reload all or /sk reload hub_core

  4. Use /hub setspawn to set the spawn point


✨ Features Included

  • Double Jump — toggles flight, launches on toggle with cooldown

  • Hotbar Items — Navigator compass, Visibility toggle, Cosmetics

  • Server Navigator GUI — 3-row chest GUI with server buttons

  • Anti-Build — blocks place/break unless hub.admin.build

  • No Damage / No Hunger — fully protected hub world

  • Visibility Toggle — hide/show all other players

  • Join Effects — particles, fireworks, title screen

  • VIP Join Broadcast — special announcements for hub.vip / hub.mvp

  • Particle Trail — /trail command to toggle flame trail

  • Admin Commands — /hub reload, /hub setspawn, /hub spawn, /hub setup


🔑 Permissions

Permission
Description
hub.admin
Access
/hub
admin commands
hub.admin.build
Can place/break blocks in hub
hub.admin.inventory
Can freely edit inventory in hub
hub.vip
VIP join broadcast
hub.mvp
MVP join broadcast
itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX

itzrealorionx

Make it without error and make the prefix to OrionHubX ..

itzrealorionx

Make it without error and make the prefix to OrionHubX like this

itzrealorionx

Make it without error and make the prefix to OrionHubX like this

Kodari AI
KodariJun 15 at 3:17 pm 40

⚙️ Setup (3 steps)

  1. Drop OrionHubX.sk into plugins/Skript/scripts/

  2. Run /sk reload OrionHubX

  3. Go to your spawn point and run /hub setspawn


🔧 Configuration

Open the file and change the options block at the top:

Option
Default
Description
hub-world
hub
Your hub world name
dj-up
0.8
Double jump upward force
dj-forward
1.2
Double jump forward force

⚡ Features

Feature
How it works
Double Jump
Press jump twice — auto-resets on landing
Navigator
Right-click the
Compass
in slot 1
Visibility
Right-click the
Ender Eye
in slot 5
Anti-Build
Blocks break/place unless
hub.admin.build
No Damage/Hunger
Fully cancelled in hub world
VIP/MVP Broadcasts
hub.vip
/
hub.mvp
permissions
Inventory Lock
Prevents item manipulation (bypass:
hub.admin.inventory
)

🔑 Permissions

Permission
Access
hub.admin
/hub
command
hub.admin.build
Break/place blocks
hub.admin.inventory
Edit inventories freely
hub.vip
VIP join broadcast
hub.mvp
MVP join broadcast
itzrealorionx

Did you put everything u mentioned before to one skript?

Kodari can make mistakes. Review important code before using.
Files
hub
OrionHubX.sk
Code
4 722
hub/hub_core.sk
# ============================================================
#  DeluxeHub Skript - Core System
#  Place in: plugins/Skript/scripts/hub/
#  Reload with: /sk reload hub_core
# ============================================================

options:
    # World name that is considered the hub
    hub-world: world

    # Prefix for all messages
    prefix: &8[&b&lOrionHUBX&8] &r

    # Title shown on join
    join-title: &b&lWELCOME
    join-subtitle: &7to the &b&lNetwork

    # Double jump options
    double-jump-enabled: true
    double-jump-strength: 1.2
    double-jump-cooldown: 3

    # Hotbar slots (0-8)
    slot-navigator: 0
    slot-visibility: 4
    slot-cosmetics: 8

    # Item definitions
    item-navigator: compass named "&b&lNavigator" with lore "&7Click to browse&7servers!"
    item-visibility-on: lime dye named "&a&lPlayers: &2ON" with lore "&7Click to hide&7all players"
    item-visibility-off: red dye named "&c&lPlayers: &4OFF" with lore "&7Click to show&7all players"
    item-cosmetics: chest named "&d&lCosmetics" with lore "&7Click to open&7your cosmetics"

# ================
# VARIABLES INIT
# ================

on script load:
    broadcast "{@prefix}&aHub system loaded successfully!"

# ================
# PLAYER JOIN
# ================

on join:
    wait 1 tick
    if world of player is world({@hub-world}):
        call hub setup for player

on world change:
    if event-world is world({@hub-world}):
        call hub setup for player
    else:
        # Clean up when leaving hub
        delete {hub::doublejump::%player's uuid%}

# ================
# HUB SETUP
# ================

function hub setup(p: player):
    # Reset player state
    set {_p}'s game mode to adventure
    set {_p}'s food level to 20
    set {_p}'s health to 20
    set {_p}'s fly speed to 0.1
    clear {_p}'s potion effects

    # Give hotbar items
    call give hub items to {_p}

    # Show welcome title
    send title "{@join-title}" with subtitle "{@join-subtitle}" and fade in 20 and stay 60 and fade out 20 to {_p}

    # Welcome message
    send "{@prefix}&7Welcome back, &b%{_p}%&7!" to {_p}
    send "{@prefix}&7Use your &bhotbar items &7to navigate." to {_p}

# ================
# HOTBAR ITEMS
# ================

function give hub items(p: player):
    set slot {@slot-navigator} of {_p}'s inventory to {@item-navigator}
    if {hub::visibility::%{_p}'s uuid%} is true:
        set slot {@slot-visibility} of {_p}'s inventory to {@item-visibility-off}
    else:
        set slot {@slot-visibility} of {_p}'s inventory to {@item-visibility-on}
    set slot {@slot-cosmetics} of {_p}'s inventory to {@item-cosmetics}

# ================
# ANTI-BUILD
# ================

on block break:
    if world of player is world({@hub-world}):
        if player doesn't have permission "hub.admin.build":
            cancel event
            send "{@prefix}&cYou cannot break blocks in the hub!" to player

on block place:
    if world of player is world({@hub-world}):
        if player doesn't have permission "hub.admin.build":
            cancel event
            send "{@prefix}&cYou cannot place blocks in the hub!" to player

# ================
# NO DAMAGE
# ================

on damage:
    if world of victim is world({@hub-world}):
        cancel event

# ================
# NO HUNGER
# ================

on hunger change:
    if world of player is world({@hub-world}):
        cancel event
        set player's food level to 20

# ================
# ITEM DROP PREVENTION
# ================

on drop:
    if world of player is world({@hub-world}):
        cancel event

# ================
# INVENTORY CLICK PROTECTION
# ================

on inventory click:
    if world of player is world({@hub-world}):
        if event-inventory is player's inventory:
            if player doesn't have permission "hub.admin.inventory":
                cancel event

# ================
# HOTBAR ITEM INTERACTION
# ================

on right click:
    if world of player is world({@hub-world}):

        # Navigator
        if player's tool is {@item-navigator}:
            cancel event
            open virtual chest inventory with 3 rows named "&b&lServer Navigator" to player
            call populate navigator for player

        # Visibility toggle
        else if player's tool is {@item-visibility-on}:
            cancel event
            call toggle visibility for player

        else if player's tool is {@item-visibility-off}:
            cancel event
            call toggle visibility for player

        # Cosmetics
        else if player's tool is {@item-cosmetics}:
            cancel event
            send "{@prefix}&7Cosmetics coming soon!" to player

# ================
# DOUBLE JUMP
# ================

on player toggle flight:
    if world of player is world({@hub-world}):
        if player's game mode is not creative:
            if player's game mode is not spectator:
                cancel event
                if {hub::doublejump::%player's uuid%} is not set:
                    set {hub::doublejump::%player's uuid%} to true
                    launch player upward with force {@double-jump-strength}
                    set {hub::doublejump::%player's uuid%} to true

                    # Play effect
                    play sound "entity.firework_rocket.launch" with volume 0.5 and pitch 1.5 to player

                    # Cooldown removal
                    wait {@double-jump-cooldown} seconds
                    delete {hub::doublejump::%player's uuid%}

on land:
    if world of player is world({@hub-world}):
        delete {hub::doublejump::%player's uuid%}
        if player's game mode is not creative:
            if player's game mode is not spectator:
                allow player to fly

on player start sprinting:
    if world of player is world({@hub-world}):
        if player's game mode is not creative:
            if player's game mode is not spectator: