Napojení pluginu na mysql

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
SpreyYManNNikKK
Příspěvky: 1294
Registrován: 25 led 2012, 18:49
Reputation: 0

Napojení pluginu na mysql

#1 Příspěvekod SpreyYManNNikKK » 08 kvě 2012, 14:27

Zdravim lidi , prosimvás jak zadám ty údaje do mysql ??(od Iconomy ) ( mám sierra.fakaheda.eu , gs_27322_1 )

Kód: Vybrat vše

  Database:
    # Databases Supported:
    # Flatfile, FF, mini, minidb
    #  - These all equate to miniDB
    ##
    # item, items, inventory, inventoryDB
    #  - These all equate to InventoryDB, which uses inventory for storage
    ##
    # xp, exp, orb, xpdb, expdb, orbdb
    #  - These all equate to ExperienceDB, which relies on Experience for balance.
    ##
    # mysql, mysqldb
    #  - These will attempt to connect to MySQL
    ##
    # sqlite, sqlite2, sqlite3, sqlitedb
    #  - These will attempt to create & connect to SQLite
    ##
    # postgre, postgreSQL, postgreDB
    #  - These will attempt to connect to PostgreSQL
    Type: 'minidb'
   
    # These are for InventoryDB only.
    #
    # InventoryDB is essentially Physical Money.
    #   It isn't logged in a database, its based on the users inventory
    #   and the two items selected below.
    #
    # MajorItem is the item or block ID of the major currency
    # MinorItem is the item or block ID of the minor currency
    # e.g. MajorItem: 266, MinorItem: 265 for Gold/Iron
    MajorItem: 266
    MinorItem: 265

    # This controls the database name, by default it is iConomy
    Table: 'iConomy'

    # URL is for SQL Databases Only
    ##
    # Path to iConomy folder is easy, it's the COMPLETE path.
    # (Mine) G:\MineCraft\plugins\iConomy\
    # Won't be the same as yours, but it usually looks like that.
    ##
    # [H2DB Default] h2:path/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
    # [SQLite Default] sqlite:path/to/iConomy/folder/iConomy.db
    ##
    # Binary Databases use ip:port style connections.
    # ip
    #  - is the connection identifier (internet protocol)
    #  - for ipv6 usually encased in brackets [::1]
    # port
    #  - the port that the database is listening on
    #  - defaults: 3306 for mysql, postgre is either 5740 or 5432
    ##
    # [MySQL Default] mysql://localhost:3306/iConomy
    # [Postgre Default] postgresql://localhost:5740/iConomy
    URL: 'mysql://localhost:3306/iConomy'

    # Login details for binary databases
    Username: 'root'
    Password: ''

a jobs ?

Kód: Vybrat vše

# General configuration.
#
#   The general configuration for the jobs plugin mostly includes how often the plugin
# saves user data (when the user is in the game), the storage method, whether
# to broadcast a message to the server when a user goes up a skill level.
#   It also allows admins to set the maximum number of jobs a player can have at
# any one time.

# storage method, can be MySQL, h2
storage-method: h2

# Requires Mysql.
mysql-username: root
mysql-password:
mysql-database: minecraft
mysql-url: jdbc:mysql://localhost:3306/
#mysql-table-prefix:

# How often in minutes you want it to save, 0 disables periodic saving and
# the system will only save on logout
save-period: 10

# Do all players get a message when somone goes up a skill level?
broadcast-on-skill-up: true

# Do all players get a message when somone goes up a job level?
broadcast-on-level-up: true

# maximum number of jobs a player can join
#max-jobs: 3

# option to enable the stats and achievements plugin.
#enable-stats: true

# option to allow payment to be made when near a spawner
#enable-pay-near-spawner: true

# choose, which economy plugin should be used as default (optional)
# if not set, will use iConomy first
# available options: iConomy, BOSEconomy, Essentials
#economy: iConomy
Naposledy upravil(a) SpreyYManNNikKK dne 08 kvě 2012, 14:38, celkem upraveno 2 x.

Uživatelský avatar
LavorekCZ
Příspěvky: 1805
Registrován: 20 lis 2011, 13:58
Reputation: 0
Kontaktovat uživatele:

Re: Napojení pluginu na mysql

#2 Příspěvekod LavorekCZ » 08 kvě 2012, 14:36

Můj celý config iConomy

Kód: Vybrat vše

# iConomy 6.0
# @author     Nijikokun <nijikokun@gmail.com>
# @license    GPLv2
# @copyright  Copyright AniGaiku LLC (C) 2010-2011
##
# Setup Notes
#   - Seconds
#         Basic Table:
#           1 minute = 60 seconds
#           1 hour = 1 minute * 60 = 3600 seconds
#           1 day = 1 hour * 24 = 86400 seconds
#           1 week = 1 day * 7 = 604800 seconds
#   - Database
#           Do not use remote databases from free sites, please use either a
#            remote database from a personal hosted VPS or DEDI or a local
#            database. This will prevent any 'timeout' or 'invalid settings'
#            or 'cannot connect to database' issues. Thank you :)!
##

System:
  Default:
    Currency:
      # Major is the first segment [Major].Minor
      Major: [ 'Dollar', 'Dollars' ]                # Major ([Major].Minor) 1.00 Dollar (With Seperate 1 Dollar)
      Minor: [ 'Coin', 'Coins' ]                    # Minor (Major.[Minor]) 0.23 Coins  (With Seperate 0 Dollars, 23 Coins)

    Account:
      # Default account balance when created
      Holdings: 30.0

  # Controls how money is formatted through methods
  Formatting:
    # Minor allows you to use the Minor amounts for amounts <1
    # Example (true) 0.23 Coins and 1.23 Dollars (false) 0.23 Dollars and 1.23 Dollars
    Minor: false

    # Seperate allows your money to be shown in an alternative way,
    # instead of 1.32 it will show as 1 Dollar 23 Coins
    # !!! NOTICE: This only works if Minor is set to true !!!
    Seperate: false                               # Example (true) 1 Dollar, 23 Coins (false) 1.23 Dollars (Only if Minor is true)

    # Single shows your money in another alternative way.
    # Instead of 1.23 Dollars you will see: 1 Dollar.
    # If your money is 0.23 you will see 0 Dollars if Minor is false, 23 Coins if Minor is true.
    # !!! Notice: This overrides seperate !!!
    Single: false

  # Logs all monetary transactions passed through iConomy
  Logging:
    Enabled: false

  # Controls amount of money gained at a set interval.
  Interest:
    Enabled: false

    # Only give interest to players who are currently online?
    Online: true

    Announce:
      # Send a message when the player gains interest?
      Enabled: false

    Interval:
      #  Interval is done in seconds, here is a easy reference table for commonly set intervals:
      #   1 minute = 60 seconds
      #   1 hour = 1 minute * 60 = 3600 seconds
      #   1 day = 1 hour * 24 = 86400 seconds
      #   1 week = 1 day * 7 = 604800 seconds
      Seconds: 60

    Amount:
      # The balance to be met where we stop giving interest.
      # 0.0 for no limit
      Cutoff: 0.0

      # Percentage of holdings to give / take (Negative to take) (Overrides Min/Max)
      Percent: 0.0

      # This is range based, to set a "flat" or "constant" rate, set each (Maximum and Minimum) to the same number.
      # If the two numbers are different, it will be a random amount in-between the two.
      Maximum: 1
      Minimum: 2

  Database:
    # Databases Supported:
    # Flatfile, FF, mini, minidb
    #  - These all equate to miniDB
    ##
    # item, items, inventory, inventoryDB
    #  - These all equate to InventoryDB, which uses inventory for storage
    ##
    # xp, exp, orb, xpdb, expdb, orbdb
    #  - These all equate to ExperienceDB, which relies on Experience for balance.
    ##
    # mysql, mysqldb
    #  - These will attempt to connect to MySQL
    ##
    # sqlite, sqlite2, sqlite3, sqlitedb
    #  - These will attempt to create & connect to SQLite
    ##
    # postgre, postgreSQL, postgreDB
    #  - These will attempt to connect to PostgreSQL
    Type: 'MySQL'
   
    # These are for InventoryDB only.
    # MajorItem is the item or block ID of the major currency
    # MinorItem is the item or block ID of the minor currency
    # e.g. MajorItem: 266, MinorItem: 265 for Gold/Iron
    MajorItem: 266
    MinorItem: 265

    # This controls the database name, by default it is iConomy
    Table: 'iConomy'

    # URL is for SQL Databases Only
    ##
    # Path to iConomy folder is easy, it's the COMPLETE path.
    # (Mine) G:\MineCraft\plugins\iConomy\
    # Won't be the same as yours, but it usually looks like that.
    ##
    # [H2DB Default] h2:path/to/iConomy/folder/iConomy;AUTO_RECONNECT=TRUE
    # [SQLite Default] sqlite:path/to/iConomy/folder/iConomy.db
    ##
    # Binary Databases use ip:port style connections.
    # ip
    #  - is the connection identifier (internet protocol)
    #  - for ipv6 usually encased in brackets [::1]
    # port
    #  - the port that the database is listening on
    #  - defaults: 3306 for mysql, postgre is either 5740 or 5432
    ##
    # [MySQL Default] mysql://localhost:3306/iConomy
    # [Postgre Default] postgresql://localhost:5740/iConomy
    URL: 'mysql://localhost:3306/gs_sem-dej-port-serveru_1'

    # Login details for binary databases
    Username: 'gs_sem-dej-port-serveru_1'
    Password: 'sem_dej_heslo_od_mysql'

    # Conversion allows you to convert your old 5.x to the new 6.x
    # All is currently unused.
    # URL is for MySQL only, H2DB doesn't use it.
    Conversion:
      # Set to True, After converting, change this back to false!
      Enabled: false

      # Database Type, H2DB or MySQL
      Type: 'MySQL'

      # Database Table
      Table: 'iConomy'

      # Database URL without table at the end.
      URL: 'mysql://localhost:3306/'

      # Username / Password
      # H2DB does not use this. MySQL Only.
      Username: ''
      Password: ''

      # Unused ATM.
      All: true


Můj config Jobs

Kód: Vybrat vše

#   The general configuration for the jobs plugin mostly includes how often the plugin
# saves user data (when the user is in the game), the storage method, whether
# to broadcast a message to the server when a user goes up a skill level.
#   It also allows admins to set the maximum number of jobs a player can have at
# any one time.

# storage method, can be MySQL, sqlite, h2
storage-method: MySQL
# Requires Mysql.
mysql-username: gs_sem-dej-port-serveru_1
mysql-password: sem-dej-heslo
mysql-url: jdbc:mysql://localhost:3306/gs_sem-dej-port-serveru_1
mysql-table-prefix: ''
# How often in minutes you want it to save, 0 disables periodic saving and
# the system will only save on logout
save-period: 10
# Do all players get a message when somone goes up a skill level?
broadcast-on-skill-up: true
# Do all players get a message when somone goes up a level?
broadcast-on-level-up: false
# Maximum number of jobs a player can join.
# Use 0 for no maximum
max-jobs: 1
# option to allow payment to be made when killing mobs from a spawner
enable-pay-near-spawner: false
# option to allow payment to be made in creative mode
enable-pay-creative: false
# Modifys chat to add chat titles.  If you're using a chat manager, you may add the tag {jobs} to your chat format and disable this.
modify-chat: true
Pomohl ti někdo? Pak určitě bude rád, když mu zvedneš karmu!
not sure

Uživatelský avatar
SpreyYManNNikKK
Příspěvky: 1294
Registrován: 25 led 2012, 18:49
Reputation: 0

Re: Napojení pluginu na mysql

#3 Příspěvekod SpreyYManNNikKK » 08 kvě 2012, 15:37

THX

Uživatelský avatar
LavorekCZ
Příspěvky: 1805
Registrován: 20 lis 2011, 13:58
Reputation: 0
Kontaktovat uživatele:

Re: Napojení pluginu na mysql

#4 Příspěvekod LavorekCZ » 08 kvě 2012, 15:40

Ok, LOCK
Pomohl ti někdo? Pak určitě bude rád, když mu zvedneš karmu!
not sure


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 13 hostů