Bukkit CoinFlipper 2.4

50/50 chance. Winner takes everything. Do you dare?

  1. gronnmann submitted a new resource:

    CoinFlipper - 50/50 chance. Winner takes everything. Do you dare?

    Read more about this resource...
     
  2. You put the wrong permission for placing bets in the front page. The right one is coinflipper.create
    Could you add the names of the players that you betting against in the top of the gui instead of coinflipper game or at least let us move the mouse while its rolling
     
  3. The first one: sure. As for the second, I'm working on it but when I try the plugin doesn't seem to switch the player heads fast enough. Also thanks for noticing and telling me the permissions issue.
     
  4. Couldnt you just add the players name on the top of the gui while its rolling? something like
    "Player1 vs Player2"
    Btw im using this plugin on a 1.7.10 server and its working fine
     
  5. Working on it, it's 2 AM here when I live though so the update won't come before tomorrow. Also pleased to hear it's working fine on 1.7.10 :)
     
  6. gronnmann updated CoinFlipper with a new update entry:

    CUSTOMIZABLE MESSAGES

    Read the rest of this update entry...
     
  7. gronnmann updated CoinFlipper with a new update entry:

    STATS UPDATE

    Read the rest of this update entry...
     
  8. Ideas:
    • Add way to have bigger percentage chance via permissions.
    • Add way to win also items.
    • Add way to bet items.
    • Add way to bet other things (see plugin TradeMe, what all is supported, ex. you can add to bet Residences, Pets, Exp.....).
    • Add support for placeholderapi
    • Add way to create sign with statistic.
    • Add way to create hologram with statistic.
    • Add way to create scoreboard with statistic.
     
  9. Will the vault dependency be remove in the future or you don't have plans for this? Thanks.
     
  10. Hello. I can't really remove the Vault dependency as it's needed to hook with the economy plugins to add/remove players money.
     
  11. Error -

    Code (Text):
    28.02 17:55:45 [Server] ERROR Could not pass event InventoryClickEvent to CoinFlipper v1.5
    28.02 17:55:45 [Server] INFO org.bukkit.event.EventException
    28.02 17:55:45 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1837) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInWindowClick.a(SourceFile:33) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.PacketPlayInWindowClick.a(SourceFile:10) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_111]
    28.02 17:55:45 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_111]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_111]
    28.02 17:55:45 [Server] INFO Caused by: java.lang.NullPointerException
    28.02 17:55:45 [Server] INFO at io.github.gronnmann.coinflipper.bets.BettingManager.challengeBet(BettingManager.java:96) ~[?:?]
    28.02 17:55:45 [Server] INFO at io.github.gronnmann.coinflipper.GUI.onInvClick(GUI.java:236) ~[?:?]
    28.02 17:55:45 [Server] INFO at sun.reflect.GeneratedMethodAccessor1630.invoke(Unknown Source) ~[?:?]
    28.02 17:55:45 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111]
    28.02 17:55:45 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111]
    28.02 17:55:45 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.11-6f7aabf-c8ff651.jar:git-Spigot-6f7aabf-c8ff651]
    28.02 17:55:45 [Server] INFO ... 15 more
     
    • Like Like x 1
  12. I will look further into this, but it seemed like one player didnt have stats registered. It should be fixed next time he joins the server. I will make next update auto generaring stats should they be missing tho.

    EDIT: Bug shouldn't be able to occur after v1.5_1 (unless server has to empty space on disk remaining)
     
    #18 gronnmann, Feb 28, 2017
    Last edited: Mar 1, 2017
  13. Oh, now I got it.
    Can you maybe make a plugin to bet items? Like, bet diamonds? I have a survivor server without economy (I think that economy breaks the vanilla gameplay). I would use it (or maybe implement it in your plugin, it's like a addon, bet items instead of money.)
     
  14. Hmm can try to look into it but it would probably require rewriting a lot of stuff.
     
    • Friendly Friendly x 1

Share This Page