#(hearty6969) Database VS Flags

20 messages · Page 1 of 1 (latest)

coral peak
#

So, I have 2 Sepcific examples:

  1. I'm making a whitelist system with Discord and Minecraft. Is it better to make it through flags, or contain player's data in database?
  • And also, how do I transfer flags/flag's data through servers? For example I have LOBBY and SURVIVAL servers, I wanna transfer flags between them, is it possible?
  1. I'm making Clan system, and again: is it better to use Flags for containing it's data, or Database?
pure scarabBOT
#

(hearty6969) Database VS Flags

pure scarabBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

lavish folio
#

Unless you plan on sending that data externally ( Like to a website, for like leaderboards or displaying a players nickname/faction on a forums, etc. ) then usually you don't need to use a database for information. It's pretty specific on when you should be using one.

#

Other threads list..

#

!c bungeetag

unreal condorBOT
# lavish folio !c bungeetag
Required Plugins or Platforms

Depenizen, DepenizenBungee, BungeeCord

Group

Depenizen

Syntax

bungeetag [server:<server>] [<tags>]

Short Description

Parses tags on another server on a Bungee network and returns the results for this server to process.

Description

This command parses tags on another server on a Bungee network and returns the results for this server to process.

As a more technical explanation: All commands in Denizen parse tags in any input arguments prior to processing them further.
This command skips that step, and sends the raw tags out to the specified server to then have that server perform the actual tag processing,
when then gets sent back and allows the command to complete.

Tags will be parsed on the remote server, but definition...

lavish folio
#

Although be aware that I've never used bungee, I only see this brought up in other similar threads of how to send/bridge data across servers.

coral peak
lavish folio
#

I made my own guild system with flags, it's not recommended to use a database for reading information. Maybe as a backup or external method of reading that information.

coral peak
lavish folio
#

You can do flags, or a data script container. But if you want people without direct server access then consider flags.

coral peak
lavish folio
#

!l data script container

unreal condorBOT
# lavish folio !l data script container

Data script containers are generic script containers for information that will be referenced by other scripts.

No part of a 'data' script container is ever run as commands.

There are no required keys.

Generally, data is read using the !tag ScriptTag.data_key tag.


data_script_name:

    type: data

    # Your data here
    some_key: some value
    some_list_key:
    - some list value
    some_map_key:
        some_subkey: some value


Group

Script Container System

coral peak
lavish folio
#

It's static. It's good if you're expecting a set amount of people, but if you plan to add more over time then flags may be the better option. Especially if you make your own /whitelist command like I have.

coral peak