CE AAPP
CE AAPP SpigotCE AAPP GitHubConditionalEvents
ConditionalEvents AAPP
ConditionalEvents AAPP
  • 🔮CE AAPP
    • 📌Starting information
    • ⚙️Installation or updation
    • 🗒️Logical notations
    • Actions
      • 🔌Plugins actions
        • change_balance
        • change_oraxen_block
        • change_items_adder_block
        • drop_items_adder_item
        • show_end_credits
      • 🏃Events actions
        • change_projectile
      • 🌐Independent actions
        • manage_inventory
        • change_chat
        • change_block
        • change_AI
        • change_weather
        • change_time
        • change_freeze
        • change_fire
        • create_explosion
        • change_gravity
        • parse_placeholder
        • change_speed
        • change_ticks_lived
        • launch_projectile
        • change_gliding
        • change_invulnerable
        • change_movement
        • change_name
        • change_item
        • manage_recipe
        • change_fly
        • change_craft
        • change_air
        • drop_current_item
        • attack_entity
        • change_passenger
        • teleport_entities
        • change_entities
        • player_break_block
        • change_effect
        • make_damage
        • change_velocity
        • change_health
        • change_area
        • change_statistic
        • manage_mysql
    • Placeholders
      • 🔌Plugins placeholders
        • Placeholder for LuckPerms permissions with contexts
        • Placeholder for real nickname in Essentials based on custom nickname
      • 🌐Independent placeholders
        • Placeholder for items
        • Placeholder for the highest block at a location
        • Placeholder for random block in area
        • Placeholder for biome by coordinates
        • Placeholder for entities in radius
        • Placeholder for processing arrays
        • Placeholder for different team information /team
        • Placeholder for custom data
        • Placeholder for different entity information
        • Placeholder for block lighting
        • Placeholder for working with MySQL
    • 🔧Modifying the addon
Powered by GitBook
On this page
  1. CE AAPP
  2. Placeholders
  3. Independent placeholders

Placeholder for working with MySQL

A placeholder that allows you to working with MySQL and other external databases.


Meaning

Allows you to working with MySQL and other external databases, using the JDBC link for the connection and performing different queries using PreparedStatement (default queries are suitable too).


Format
%CEP_mysql_<jdbc_url>_<sql_query>_(semi-mandatory) <param1>,<param2>,<paramN>%

<jdbc_url> – the JDBC link to connect to the database; (MANDATORY)

<sql_query> – the query to the database (only obtaining the data); (MANDATORY)

<params> – the substitutes for the "?" in the PreparedStatements in the "sql_query" (use it only in case if you are using the PreparedStatements in the "sql_query"). (SEMI-MANDATORY)


Use "ᵕ" symbol instead of underscores and "╵" symbol instead of percents everywhere!

Not only PreparedStatements are available, default queries are suitable too.


Targets
  • SQL queries.


Where is useful

Can be useful to obtain data from the external databases in any way.


Examples
%CEP_mysql_jdbc:mysql://u256340ᵕPIuNdnjIDAD:0gwDfoEdN╵44ySggXPCF╵2B56uFLpC39za╵5E@mysql-org-d1.test.xyz:3306/s263450ᵕTESTDB_SELECT * FROM TestTable WHERE Player = ? AND Action = ? ORDER BY ID DESC LIMIT ?_0ptifyne,ObtainingMoney,3% # Get three last entries from the TestTable with player "0ptifyne" and action "ObtainingMoney"

Note that any external databases are suitable, not just MySQL.

PreviousPlaceholder for block lightingNextModifying the addon

Last updated 18 days ago

🔮
🌐