Skip to content

Coflnet/SkyModCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4b8f9d4 · Feb 23, 2025
Aug 23, 2023
Dec 17, 2021
Feb 23, 2025
Jan 15, 2025
Feb 10, 2025
Aug 23, 2023
Sep 3, 2024
Feb 10, 2025
Nov 30, 2024
Oct 29, 2023
Dec 15, 2021
May 1, 2024
Aug 23, 2023
Dec 15, 2021
Sep 11, 2024
Jul 8, 2023
Feb 16, 2025
Oct 29, 2023
Jan 15, 2025
Dec 15, 2021
Nov 2, 2024

Repository files navigation

SkyModCommands

Commands

Models

ChatPart

Used to transfer a chat message with click action and hover text.

{
    "text":"Hello World",
    "onClick":"suggest_command:/auction",
    "hover":"show_text:\"Click to suggest /auction\""
}

Auction

Representation of an auction from the api

{
    {"enchantments":[],"uuid":"be02f8df060644b8b9c7a69ad027a587","count":1,"startingBid":5000000,"tag":"PET_BAT","itemName":"[Lvl 63] Bat","start":"2023-05-29T02:57:37","end":"2023-05-29T08:52:37","auctioneerId":"84ba980026f640fba18ca14ad5f540d8","profileId":"888dee1e5eb04242acfcfba060f2ff85","coop":null,"coopMembers":null,"highestBidAmount":5000000,"bids":[{"bidder":"7f9fbe96ffc4468f8e896dc35a5b2f4a","profileId":"unknown","amount":5000000,"timestamp":"2023-05-29T08:52:37"}],"anvilUses":0,"nbtData":{},"itemCreatedAt":"2023-05-28T22:55:00","reforge":"None","category":"MISC","tier":"MYTHIC","bin":true,"flatNbt":{"type":"BAT","active":"False"}}
}

Used in multiple commands.

Server to Client

flip

Data about a flipable auction.

{
    "message":[{ChatPart}],
    "id":"auctionuuid",
    "worth":12345678, // higher the "better" a flip is
    "sound":{"name":"note.pling","pitch":1},
    "auction":{Auction},
    "render":"leather_leggings" // the item name to render, if length 64 not an item id but a skull texture id 
}

chatMessage

A message that should be displayed in the chat.

[{ChatPart}]

privacySettings

Transmits users the privacy settings on login or when they changed so some data is started to/no longer uploaded.

{
    "chatRegex":".*",
    "collectChat":true,
    "collectInventory":true,
    "collectTab":true,
    "collectScoreboard":true,
    "allowProxy":true,
    "collectLobbyChanges":true,
    "collectEntities":true,
    "collectLocation":true,
    "extendDescriptions":true,
    "commandPrefixes":["/cofl","/colf","/fc"],
    "autoStart":true,
}

error

An error message something went severly wrong.

"message"

writeToChat

First version of chatMessage only supporting one element.

{ChatPart}

execute

Executes a command on the client. Exists for extensibility. Currently used to

  • open players ahs directly
  • trigger commands in the client
  • test ping (executing a /cofl command and timing the response)

poses a potential security risk if the server is not trusted.

"command"

ping

Used to keep the connection alive. Cloudflare closes inactive connections after one minute. Can be ignored by the client.

0

countdown

Triggers a countdown to be displayed.

{
    "seconds":12.3,
    "widthPercent":10,
    "heightPercent":10,
    "scale":2,
    "prefix":"§c",
    "maxPrecision":3
}

getMods

Requests the mods the client has installed. Used for compatibility checks.

0

playSound

Plays a sound on the client.

{
    "name":"note.pling",
    "pitch":1
}

log

Logs a message on the client. Used for debugging.

"message"

settings

Response to "get","json" command returns a json view of all the available settings and their current values. key = o.Key, name = o.Value.RealName, value = await updater.GetCurrentValue(socket, o.Key), info = o.Value.Info, type = o.Value.Type, category = o.Key.Substring(0, 3) switch { "mod" => "mod", "sho" => "visibility", "pri" => "privacy", _ => "general" }

[
    {
        "key":"minProfit",
        "name":"Minimum Profit",
        "value":123456,
        "info":"The minimum amount of profit a flip should make to be displayed.",
        "type":"bool|int|double|string",
        "category":"mod|visibility|privacy|general"
    }
]

tier

Response to "get","tier" command returns the users current plan tier

{
    "tier":"PREMIUM",
    "expires":"2023-05-29T08:52:37"
}

About

Backend for minecraft frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages