Inactive [FUN]Vault Slots v1.7 ~ Simple Slot Machines [1.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by SirTyler, Nov 1, 2011.

  1. Offline

    GoTheRedSox

    hmmm i tried using this in the config but it keeps crashing the server heres the config and error:
    Code:
    # default config.yml
    type:
      Symbols:
        labels: $:&:#:%
        payout: '266:2'
        jackpot: '264:4'
        jackpotLabel: $
        cost: '265:2'
      Magic 8:
        labels: 8:7:9:6
        payout: '263:5'
        jackpot '266:5'
        jackpotLabel: 8
        cost '265:1'
      Lucky 7s:
        labels: 7:D:S:R
        payout: '331:2'
        jackpot: '264:4'
        jackpotLabel: 7
        cost: '265:3'
      Speed Demon:
        labels: D:S:F:M
        payout: '331:5'
        jackpot: '266:10'
        jackpotLabel: D
        cost: '265:5'
      Gold Rush:
        labels: G:R:A:B
        payout: '266:1'
        jackpot: '266:20'
        jackpotLabel: G
        cost '265:1'
    
    Code:
    2011-12-24 21:10:48 [SEVERE] Could not pass event PLAYER_INTERACT to VaultSlots
    while scanning a simple key
     in "<string>", line 26, column 5:
            cost '265:1'
            ^
    could not found expected ':'
     in "<string>", line 27, column 1:
    
        ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:398)
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:229)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:178)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:563)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:161)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:146)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:123)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:106)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:121)
        at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:480)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:399)
        at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59)
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:143)
        at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:109)
        at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:235)
        at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:131)
        at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:125)
        at me.sirtyler.VaultSlots.PlayerUse.onPlayerInteract(PlayerUse.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:149)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:561)
        at net.minecraft.server.Packet15Place.a(SourceFile:39)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
     
  2. Offline

    Slime

    It will, because we give you support and knowledge that ppl use our plugin :) thx again
     
  3. Offline

    SirTyler

    I know people use and support it, but that can't make me work any faster xD

    Post the file to pastebin and I will look at it, also just make sure you are not using TAB and you are using spaces instead.

    Merry Christmas and Happy Holidays to everyone! Thank you all for using Vault Slots!
     
  4. Offline

    GoTheRedSox

    ok heres the file on paste bin: http://pastebin.com/FwTMuLWx im not using TAB btw
     
  5. Offline

    SirTyler

  6. Offline

    GoTheRedSox

    omg i feel so stupid now lol thanks!
     
  7. Offline

    Royalgamer06

    I use X:O:*:$ and this works!

    Please enable money in stead of items or both!
    Thank you!
    Roy

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  8. Offline

    SirTyler

    Everyone is demanding this and I know xP Im working on it but work is stalled for the holidays right now, alot of stuff going on irl so can't work on the plugin. When the holidays are over I will get back to work on it and it should be done.
     
  9. Offline

    Slime

    SirTyler,
    I am still confused with the A:B:C:.....:E:F... how can we know what is the chance to get an item? :D
    Dear Slime :)
     
  10. Offline

    Royalgamer06

    Okay, Thank you!
     
  11. Offline

    SirTyler

    the chance is based on how many labels you have, if you have 1 label (just A or whatever you set) then the chance is 100%. This is because you have to have all 3 positions contain the same label and there is only 1 choice. Basically you need all 3 of one of the labels to win, so the more labels you have the less chance you have to win. And the Jackpot is just a specifically defined label, I don't know the exact percentages of the chances but I am sure you can figure it out.
     
  12. Offline

    ErMurazor69

    Great plugin however its not compatible with vault so I can't use the old permissions 3 (best one made and nothing is as good) and it defaults to OPs only can use or build slot machines..... I get the building part but since only OPs can play them it makes it unusable on my server for everyone but me. it would make more sense if OPs can build but everyone can use them by default. If you are looking to add an economy support why not just hook into vault with both economy and permissions then you wont be limiting the choices of your users as they will be able to use whatever permissions or economy plugin they want and it will be compatible with your plugin. just a thought.
     
  13. Offline

    Slime

    there is a way if you use some permission file, like GroupManager
    you give the group this :
    - vaultslots.access
    enjoy.
    and a Happy New year ( I wish for me, that Slot Vault gets Economy Support (Essential ! needed :D ) thx SirTyler )
     
  14. Offline

    SirTyler

    Well you have basically said exactly what I am doing xP right now there are only superperm enabled support (PEX and bPerms for example) but will default to OP build and ALL players use slots. I am working on adding Vault support for the econ and other permission support but since it is the holidays I am not doing work on it right now. Thanks for the suggestions though!

    Like I said I am working on it, I have a lot of the work already done I have just been going easy and enjoying the holiday time with family and friends for now so I haven't done work on it.

    And Happy New Year to everyone!
     
  15. Offline

    SirTyler

    New 1.3 Release
    Uses and Depends Vault

    +Adds Better Permission Support
    +Adds Economy Support
    +Minor Updates
     
  16. Offline

    SirTyler

  17. Offline

    baramos123

    Great work so far, I think I found a bug with 1.4 though using this slot machine
    Code:
      $25000:
        labels: A:B:C:D
        payout: $1000
        jackpot: $25000
        jackpotLabel: D
        cost: $100
    If I hit D D D It gives the normal payout. Same goes for an item slot machine I have as well.

    So short story short I think the jackpot payout is bugged.
     
  18. Offline

    SirTyler

    If you hit the label it gives the normal payout instead of the jackpot?
     
  19. Offline

    baramos123

    Ya I checked it on 2 different slots.
     
  20. Offline

    SirTyler

    Alright I am taking a look at this, cant seem to pinpoint the problem

    I have no idea what the problem is, and 2 other coders I asked couldn't figure it out either. It seems to be a very strange bug that I will spend tomorrow trying to fix (most likely by re-coding the entire section of the plugin). Other than that rule out jackpots for now.

    New 1.4.2 Release
    Uses and Depends Vault
    +More Bug Fixes

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  21. Offline

    baramos123

    Working great, now to finish up my casino :p.
     
  22. Offline

    SirTyler

    Glad its working, and thanks for using Vault Slots!
     
  23. Offline

    SirTyler

  24. Offline

    Narkey67

    Hey there :) I tried out the mod and it is alot of fun and works really good, but i dont know if you are aware of that the blackjack dealer get "20" every time. Like if i stay when i have 17 in total the blackjack dealer has a 100% chance of beating me because he will get 20. Hope you will fix it or tell me what im doing wrong ;)
     
  25. Offline

    SirTyler

    It's all luck xP, the black jack dealer is programmed to draw until his score is 18 or more. So he gets 18, 19, 20, 21, or busts.
     
  26. Plugin not working anymore with 1.1 releases. Just letting you know ;)
     
  27. Offline

    SirTyler

    I will update it to 1.1 when an RB is out, mind letting me know what parts aren't working?
     
  28. Offline

    Laguna

    A question. I want to put in one of the slot machines that the prize is 5 black wool how would it?. The ID of the black wool is 35:15 as would be the configuration file? Like this?


    Code:
      blackw:
        labels: A:B:C:D
        payout: '35:15:5'
        jackpot: '35:15:20'
        jackpotLabel: D
        cost: '266:1'
     
  29. Offline

    SirTyler

    hmmm, I didn't think of this part. Alright I will go and set up the next update to have wool color support (as well as potion support and other things) in the mean time do not try that as it will break.
     
  30. Offline

    Laguna

    Thank you very much mate! ^ ^. Once this new version I download it: D
     

Share This Page