Any ideas to how this can be fixed? #12


  • New
  • Defect
  • Replied
Open
Assigned to unfriendlybaron
  • _ForgeUser8509538 created this issue Oct 30, 2012

    20:32:18 [SEVERE] Could not pass event PlayerJoinEvent to DailyBonus v3.1
    org.bukkit.event.EventException
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:341)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:62)
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
    ava:477)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:462)
            at net.minecraft.server.ServerConfigurationManagerAbstract.c(ServerConfi
    gurationManagerAbstract.java:162)
            at net.minecraft.server.ServerConfigurationManagerAbstract.a(ServerConfi
    gurationManagerAbstract.java:93)
            at net.minecraft.server.NetLoginHandler.d(NetLoginHandler.java:132)
            at net.minecraft.server.NetLoginHandler.c(NetLoginHandler.java:45)
            at net.minecraft.server.DedicatedServerConnectionThread.a(DedicatedServe
    rConnectionThread.java:44)
            at net.minecraft.server.DedicatedServerConnection.b(SourceFile:29)
            at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:569)
            at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:215)
            at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:486)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:419)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:818)
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range:
    1
            at java.lang.String.charAt(Unknown Source)
            at java.util.regex.Matcher.appendReplacement(Unknown Source)
            at java.util.regex.Matcher.replaceAll(Unknown Source)
            at java.lang.String.replaceAll(Unknown Source)
            at me.itsatacoshop247.DailyBonus.DailyBonusPlayerListener.onPlayerJoin(D
    ailyBonusPlayerListener.java:77)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
    va:339)
            ... 14 more

  • _ForgeUser8509538 added the tags New Defect Oct 30, 2012
  • UnfriendlyBaron posted a comment Nov 3, 2012

    Something is wrong with your config file, post it for me to check.

  • _ForgeUser9922441 posted a comment Nov 3, 2012

    I have the same issue.

    I'm attempting to use the default generated yml file.

    Main:
      Number of Tiers: 3
      Item Give Delay (In Seconds): 0
      Global Message: "&9[DailyBonus] &6!playername just got a bonus of !amount !type for logging in today!"
      Global Message is Enabled: true
    Tier:
      1:
        Economy Amount: 5
        Message: "&6You were given &4!amount !type &6for joining today!"
        Items:
        - 5;5-1
        - 357;1
        Commands:
      2:
        Economy Amount: 10
        Message: "&6You were given &4!amount !type &6for joining today!"
        Items:
        - 265;2
        - 364;5
        Commands:
        - give !player 5 10
      3:
        Economy Amount: 20
        Message: "&6You were given &4!amount !type &6for joining today!"
        Items:
        - 266;5
        - 22;10;5
        - 372;1
        - 5;10;5-1
        Commands:
        - god !player
        - give !player 4 10
    Notes:
    - Tiers are defined with the highest number being the highest Tier. Hence why Tier 3 give a larger amount by default than 1 or 2 do.
    - To make a new Tier, copy and past one of the current Tiers below, and simply change the number to the next highest. Also make sure to change the Number of Tiers in the main.
    - An amount of Economy Amount= 20;5 would give a random amount between 15 and 25. 5 in either direction.
    - You can delete the Items= list to give no items, or make it one line of 0;0 to also give no items.
    - In the item lists, the order is Item Id;Amount;Randomness*dash*Data Num.
    - So 5;10;5*dash*1 would give Anywhere from 5 to 15 dark-wood planks. (10 to start, then randomly 0 to 5 more or less) (*dash*1 become a data of 1, the darkwood)
    - Please use the Ticket system on bukkitDev for all issues with the plugin!
    
  • _ForgeUser9922441 removed a tag Waiting Nov 3, 2012
  • _ForgeUser9922441 added a tag Replied Nov 3, 2012

To post a comment, please login or register a new account.