Résolu Problème Iconomy

Chiliogón

Aventurier
14 Décembre 2012
57
3
3
30
Salut à tous après avoir fait un topic concernant une recherche de plugin d'économie, on m'a affirmé qu'il n'y aura pas de problèmes à l'utilisation de celui-ci en 1.4.6.

Hélàs, je rencontre un problème en effet après avoir installé Iconomy et avoir testé la bête est simple commande /money, le message suivant s'affiche "An internal error occurred while attempting to perform this command" Et je cherche donc évidemment à résodure ce problème très embêtant! :/


Code:
# iConomy 6.0.8b
# @author    Nijikokun <[email protected]>
# @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:
  Permissions:
    Use:
      # Néssécité de permission pour /money
      Holdings: false
 
  Default:
    Currency:
      Major: [ 'Pièce d'Or', 'Pièces d'Or' ]
 
      # Minor (Major.[Minor]) 0.23 Coins  (With Seperate 0 Dollars, 23 Coins)
      Minor: [ 'Pièce d'Argent', 'Pièces d'Argent' ]
 
    Account:
      # Money de départ
      Holdings: 50.0
 
  Formatting:
      # affiche " major minor" ou "major"
    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.
    # affiche ou non les centimes
    Single: false
 
  # Logs all monetary transactions passed through iConomy
  Logging:
    Enabled: true
 
  # log ou pas
  # Good way to keep unused accounts or default accounts wiped out and lower database usage.
  Purging:
    Enabled: true
 
  # créer un compte à la conenction d'un nouveau joueur
  Interest:
    Enabled: false
 
    # seulement pour les joueurs en ligne
    Online: true
 
    Announce:
      # annonce les interets
      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: '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: ''
 
    ##############################################################
    # !!! Conversion is not your database settings !!!
    ##############################################################
    # 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: 'H2DB'
 
      # 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: 'root'
      Password: ''
 
      # Unused ATM.
      All: true










Voilà!! Merci d'avance! =D
 

Chiliogón

Aventurier
14 Décembre 2012
57
3
3
30
Code:
2013-02-12 17:15:07 [INFO] Chiliogon issued server command: /money
2013-02-12 17:15:07 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin iConomy v7.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514)
at net.minecraft.server.v1_4_R1.PlayerConnection.handleCommand(PlayerConnection.java:979)
at net.minecraft.server.v1_4_R1.PlayerConnection.chat(PlayerConnection.java:897)
at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:852)
at net.minecraft.server.v1_4_R1.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:604)
at java.util.ArrayList.get(ArrayList.java:382)
at com.iCo6.util.Common.formatted(Common.java:125)
at com.iCo6.system.Holdings.toString(Holdings.java:116)
at com.iCo6.system.Holdings.showBalance(Holdings.java:50)
at com.iCo6.handlers.Money.perform(Money.java:47)
at com.iCo6.iConomy.onCommand(iConomy.java:417)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more



Voilà, comme demandé les logs de mon serveur après l'utilisation de la commande /money de base ! =)


Merci encore pour ton aide!
 

D4rkEgg

Aventurier
9 Février 2013
45
1
3
30
Si tu as essentials , inutile d'installer iconomy : Les 2 plugins sont ne s'entendent pas :p Essentials à déja sont systeme de money ;)
 

D4rkEgg

Aventurier
9 Février 2013
45
1
3
30
Tu n'as pas le choix je pense ... moi de mon côté ca marche très bien , ou renseigne toi pour trouver un plugins de money compatible avec Essentials
 

Darckoxe

Mineur des cavernes
12 Septembre 2011
73
4
30
26
Salut à toi, j'utilise iConomy et Essentials et je n'ai aucun problème en remarquant ta config j'ai remarqué une chose que tu n'as pas mis sur true et c'est surement cela qui te bloque ton /money

Dans ta config tu as:

Code:
System:
  Permissions:
    Use:
      # Néssécité de permission pour /money
      Holdings: false

il faut mettre:

Code:
Holdings: true


si cela marche ainsi alors c'est très bien sinon il faudra aller dans ton plugin de permission ( Permission EX, Groupmanager ou autres) et insérer la permission:
Code:
    - iConomy.holdings


Voila, ca devrait fonctionner :)
 
  • J'aime
Reactions: Chiliogón

Chiliogón

Aventurier
14 Décembre 2012
57
3
3
30
Salut Darckoxe, merci pour ton aide, mais après avoir fait les deux manipulations, toujours le même problème :/