Spigot Time In A Bottle 2.0.4

Use your playtime to speed things up

  1. Foxxite submitted a new resource:

    Time In A Bottle - Use your playtime to speed things up

    Read more about this resource...
     
    #1 Foxxite, Feb 8, 2020
    Last edited: Oct 16, 2020
  2. 00de updated Time In A Bottle with a new update entry:

    Out Of Beta

    Read the rest of this update entry...
     
  3. This seems like a very cool mechanic. I'm definitely interested in trying it out.

    How can i allow a player to get this on first join or as a kit?
     
    #3 BitBirdGG, Feb 8, 2020
    Last edited: Feb 8, 2020
  4. Null Pointer Exception error

    Code (Text):

    [23:53:06] [Server thread/INFO]: BitBirdGG issued server command: /tiab addTime 900
    [23:53:06] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tiab' in plugin TimeInABottle v1.0.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched_1.15.2.jar:git-Paper-93]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[patched_1.15.2.jar:git-Paper-93]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:742) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1820) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1628) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1038) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1031) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1015) ~[patched_1.15.2.jar:git-Paper-93]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:938) ~[patched_1.15.2.jar:git-Paper-93]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]
    Caused by: java.lang.NullPointerException
        at com.foxxite.timeinabottle.CommandClass.onCommand(CommandClass.java:58) ~[?:?]
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched_1.15.2.jar:git-Paper-93]
     
  5. Just run the /tiab getBottle command for that player, I will be adding a command to give the bottle to someone soon.
     
  6. Whoops missed a check to see if the player is actually holding the bottle. Will be fixed next update. Make sure you're holding the bottle for now.
     
  7. I really want you can make the lore and the messages more customizeable and add the feature that if players had played in 1 minute, they will get 1 point in the bottle, speed up anythings will lost 1 point :love:
     
    #8 CaoTrongThang, Feb 9, 2020
    Last edited: Feb 9, 2020
  8. Looking great. Could you make editable rewards for the playtime? For example: Vault money, temporary potion effects, command..
     
  9. I will look into this.
     
  10. Thank you :D
     
  11. What do I have with Null Pointers xD
    See if you find any more, I will fix this one.
     
  12. Haha that is the last null i think :D
     
  13. I'm working on the custom language support, something I haven't done before, so it might take a few days.
     
    • Like Like x 1
  14. I get the following error (many many times) when I use the bottle on a Chorus fruit plant.

    [17:15:52 WARN]: [TimeInABottle] Task #241626 for TimeInABottle v1.0.2.2 generated an exception
    java.lang.ClassCastException: null