#Need informations for DB, TempBan etc...

1 messages · Page 1 of 1 (latest)

signal grove
#

hello, for quite some time I asked myself a question, how to save data permanently even if I leave the map for example when I kick a person (with a UI) it will log that and I can display a history even if I restart the map it will still be there also if I make a ban / temp ban system I must register the banned players and be able to ban / unban them even if they are not present because I would like to be able to make an interface that allows ban/tempban mute/tempmute but to record calculated ban time etc... it is complicated

#

Srry if the trad is bad but my eng is not good and for that i have used Google translate

ocean anchor
#
  1. scoreboards objective with fakeplayers as ur data
  2. in entity's tags
  3. in item's lore
  4. in entity inventory with items and data stored in lore

are your the only few options gor permanent data storage

carmine moat
#

dynamic properties where

ocean anchor
#

not db

carmine moat
carmine moat
#

just use bds with server-net

#

and host your database externally

ocean anchor
#

bruh no use bds this chat is all about local game rarely ppl do bds stuff idk why u keep suggesting everyone to use net and db external xddd

verbal geyser
signal grove
#

@carmine moat I want to try but I have never used net

signal grove
#

In wiki net is usable only in dedicated server rip

carmine moat
carmine moat
signal grove
#

@carmine moat because i want made advancee ban system with time ban/time mute etc...

carmine moat
#

yeah, idrk how to do that without a db so unfortunately cant help you

signal grove
carmine moat
signal grove
# carmine moat yes?

How to check if the command failed as if I do /kick on myself normally it's not possible and how did we detect that

carmine moat
#

iirc

signal grove
#

@carmine moatI dont need to use that?

carmine moat
#

oh right im stupid

signal grove
#

@carmine moat if i put this isnt work

//Kick
async function openKick(player) {
    const ModalForm = new ui.ModalFormData()
    const players = mc.world.getAllPlayers().map(player => player.name)

    ModalForm.title("Menu Exclure")
    ModalForm.dropdown("Joueur", players, 0)
    ModalForm.textField("Raison", "Raison (facultatif)")
    ModalForm.toggle("Afficher pour tous les joueurs", false)

    ModalForm.show(player).then(response => {
        if (response.canceled) {
            openMain(player)
            return
        }
        let [dropdown, reason, toggle] = response.formValues
        if (reason.trim().length === 0) reason = "Non Spécifié"
        player.runCommandAsync(`kick "${players[dropdown]}" '\n§ePar: §l§6${player.name}\n§r§eRaison: §l§6${reason}`).then((res) => {
            if (!(res.successCount >= 1)) {
                //command ran successfully
                switch (toggle) {
                    case true:
                        player.runCommandAsync(`tellraw @a {"rawtext":[{"text":"§l§7[§4Exclusion§7] §r§eLe joueur §l§6${players[dropdown]} §r§eà été exclue par §l§6${player.name} §r§epour §l§6'${reason}'"}]}`)
                        break
                    case false:
                        player.runCommandAsync(`tellraw @s {"rawtext":[{"text":"§l§7[§4Exclusion§7] §r§eLe joueur §l§6${players[dropdown]} §r§eà été exclue par §l§6${player.name} §r§epour §l§6'${reason}'"}]}`)
                        break
                }
            } else {
                mc.world.sendMessage('hi')
            }
        })
        //player.runCommandAsync(`kick "${players[dropdown]}" '\n§ePar: §l§6${player.name}\n§r§eRaison: §l§6${reason}`)
    })
}
carmine moat
#

does it give you any error?

signal grove
carmine moat
#

odd

signal grove
mild goblet
signal grove
arctic mulch