Verse Library verse

01 Fragment

Checks island build settings to conditionally allow trap placement or notify players.

verse-library/island-settings-modifications/01-fragment.verse

# This is pseudo-code to show how settings interact with logic
if (IslandSettings.GetBuildMode() == BuildMode_Allowed) {
    # Allow the player to place a trap
    PlaceTrap(Player)
} else {
    # Tell the player they can't build
    SendNotification(Player, "No building allowed!")
}

Comments

    Sign in to vote, comment, or suggest an edit. Sign in