Inactive [RPG] PhatLoots v0.9.1 - Chests with randomly generated money/items [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 19, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    PhatLoots - Chests with randomly generated money/items:
    Version: 0.9.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions, LWC
    Download Page

    This plugin is a must for dungeons! Players open a linked chest and are rewarded with money (within a designated range) and randomly generated items that are predefined.

    Make a PhatLoot
    /loot make test
    Add some loot values
    /loot add test money 1 25 (looter will get 1-25 coins)
    /loot add test 322 1 10 (looter has 10% chance of getting a golden apple)
    Set a reset time
    /loot time test 1'6'45'30 (looter can loot the chest again after waiting
    1 day, 6 hours, 45 minutes, and 30 seconds.)
    Link a chest
    /loot link test (you must be targeting the chest you wish to link)

    Collective Loots allows you to setup a chest to give a certain amount (1 by default) of 'rare' items. So a chest may give the user a chance to loot a Gold Block (50%), Diamond Sword (30%), or Diamond ChestPlate (20%) yet the user will only get one of these items.

    Features:
    • Chests can give items, money, or both
    • Support for wools/dyes
    • Set different reward values for different chests.
    • Link multiple chests to one PhatLoot (this way you don't have to reenter all the items for every chest)
    • Player must wait a certain amount of time in order to loot the chest again (configurable)
    • Different reset times for each PhatLoot
    • AutoLoot option
    • Easily configure setting, loot values, reset times, and more
    • Make chests global (when looted by one person, everyone must wait to loot it again)
    • or user (each individual must wait the specified time between looting chests)
    • Uses iConomy, BOSEconomy or Essentials to give users money.
    • Uses LWC to auto protect PhatLoot chests (false by default)
    • Permissions to limit players from being rewarded and using commands
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Save Files and Properties:
    Show Spoiler

    config.properties
    Code:
    #Tue Mar 29 14:04:05 EDT 2011
    // user - when a player loots a chest they must wait the specified time to loot again
    // global - when looted by one person, everyone must wait to loot it again (first person there gets the loot)
    DefaultResetType=user
    
    // if true, when you link a chest it will automatically make it public with LWC (so noone else can claim it)
    AutoLockPhatLootChestsWithLWC=false
    
    // default number of items you get from CollectiveLoots (only applies if CollectiveLoots is not blank)
    DefaultNumberOfCollectiveLootItemsRecieved=1
    
    // amount of time before the chest will reset "Days'Hours'Minutes'Seconds"
    // change to "never" in order for it to never reset
    DefaultResetTime=0'0'5'0
    
    phatloots.save
    Code:
    test1   // a list of all your Phat Loots by name
    test2
    
    test.properties
    Code:
    #Tue Mar 29 16:20:45 EDT 2011
    //the number of items you get from CollectiveLoots (only applies if CollectiveLoots is not blank)
    NumberOfCollectiveLootItemsRecieved=1
    
    // user - when a player loots a chest they must wait the specified time to loot again
    // global - when looted by one person, everyone must wait to loot it
    ResetType=user
    
    // list of linked chests (you should never have to edit this) "x,y,z,NameOfLooter,TimeLooted,_"
    Chests(RestrictedUsers)=-155,65,-93,Codisimus,88'16'13'16,_
    
    // "itemID,NumberOfItems,PercentOfLooting,_" Should add up to 100%
    CollectiveLoots=13,1,75,_14,1,10,_15,1,15,_
    
     // amount of time before the chest will reset "Days'Hours'Minutes'Seconds"
     // change to "never" in order for it to never reset
    ResetTime=0'0'0'20
    
    // "itemID,NumberOfItems,PercentOfLooting,_"
    IndividualLoots=money,0,2,_13,1,100,_14,1,23,_15,1,30,_
    


    Commands:
    • /loot make [Name] - Creates PhatLoot
    • /loot link [Name] - Links target chest with PhatLoot
    • /loot add coll[1-5] [Item] [Amount] [Percent] - Adds collective loot to target chest's PhatLoot
    • /loot add [Item] [Amount] [Percent] - Adds individual loot to target chest's PhatLoot
    • /loot add money [Low] [High] - Adds range of money that can be looted
    • /loot remove coll[1-5] [Item] [Amount] [Percent] - Removes collective loot from PhatLoot
    • /loot remove [Item] [Amount] [Percent] - Removes individual loot from PhatLoot
    • /loot unlink [Name] - Unlinks target chest with PhatLoot
    • /loot info [Name] - Lists info of PhatLoot
    • /loot name - Gives PhatLoot name of target chest
    • /loot reset [Name or all] - Resets PhatLoot restricted list
    • /loot delete [Name] - Deletes PhatLoot and unlinks chests
    • /loot list - Lists all PhatLoots
    Permission Nodes:
    • phatloots.use - Needed for group/player to receive loots
    • phatloots.info
    • phatloots.name
    • phatloots.make
    • phatloots.list
    • phatloots.admin.reset

    Changelog:
    Old Versions, ChangeLog, + Source can be found at Download Page
    Show Spoiler

    Version 0.9.1 (7/16/2011)
    • Added color support for all customizable messages
    • Fixed Collective loots
    Version 0.9 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Added AutoLoot option
    • Improved add command
    • Added targeting chests for adding loot
    • Added item name support (rather than item ID)
    • Added saftey check so you can't add invalid loots
    Version 0.8.1 (6/13/2011)
    • Fixed OP permissions
    Version 0.8 (6/12/2011)
    • Cleaned up code/fixed errors
    • Added map support
    Version 0.7.4 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.7.3 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.7.2 (6/3/2011)
    • Added Essentials econ support
    Version 0.7.1 (5/4/2011)
    • Updated to iConomy 5
    • Few various fixes
    Version 0.7 (4/29/2011)
    • Fixed save/loss of data errors
    • Added support for wools/dyes
    • Fixed Double Chest errors
    • Added in game command for setting timer restriction
    • Added in game command for setting collective loots
    • Added option of multiple collective loots
    • Added option for setting resetType to Interval
    • Added prevention from looting out of ID-range items
    • Fixed delete command
    Version 0.6 (3/31/2011)
    • Fixed issue with users with "_" in name
    • Improved multiworld support
    • Fixed various bugs
    Version 0.5.1 (3/31/2011)
    • Fixed CollectiveLoots
    • Works with build #612
    Version 0.5 (3/30/2011)
    • Updated to craftbukkit build #602
    Version 0.4 (3/29/2011)
    • Redid save format
    • Added config file
    • Added double chest support
    • Added Collective loots
    • Added Auto protection using LWC (false by default)
    • Added a reset time ("Days'Hours'Minutes'Seconds" or "never") (0'0'5'0 by default)
    • Added global/user restriction (user by default)
    • Added antigrief feature, if chest is full PhatLoots will make room for new loot
    Version 0.3 (3/26/2011)
    • Added block protection for PhatLoot chests
    Version 0.2 (3/19/2011)
    • Fixed unknown command spamming chat
    • Fixed no Economy message spamming
    • added /loot info and /loot name (phatloots.info phateloots.name)
    Version 0.1 (3/18/2011)
    • Initial Release
     
  2. Offline

    NazzyDragon

    @Codisimus

    Please allow us to use items like lapis lazuli in loot tables... Such as 351:3 and other variations. I want this especially so for potions. I was very disappointed when I realized I couldn't specify things like this.
     
  3. Offline

    Codisimus

    which version are you using? you do this buy adding the durability value. not sure exactly how potions work though
     
  4. Offline

    NazzyDragon

    Explain? Durability value? How would I type it in? o3o
     
  5. Offline

    Codisimus

    durability/data value. but i dont think potions work that way.
     
  6. Offline

    NazzyDragon

    Such as
    351:3? I wanted to know if this is how it was typed in (because potions DO work this way)
     
  7. Offline

    Codisimus

    then it would be '/loot add test 351 3 1 100'
     
  8. Offline

    NazzyDragon

    OMFG, thank you. Please try to put this in the bukkit dev portion, I know a lot of other admins who ask me the same question ;>
     
  9. Offline

    NazzyDragon

    This is oddly not working. It cuts it off. Add support to item varients, please? I want to be able to use potions.
     
  10. Offline

    Codisimus

    someone posted how to do potions and the dev page, I'll add them to the dev op and post them here for you as well (after I test them)
     
  11. Offline

    NazzyDragon

    I approve this. Thanks very much. :>

    Anything I try for potions doesn't get it to work. I know I'm on the latest version, because a water bottle is an option for loot. :l

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

    Codisimus

  13. Offline

    Insanehero


    Hey again,

    I'm having same problems as I did with buttonwarps xD

    Code:
    2011-12-17 14:20:44 [SEVERE] [PhatLoots] Save Failed!
    2011-12-17 14:20:44 [SEVERE] java.io.FileNotFoundException: plugins/PhatLoots/ForestLoot.dat (Too many open files)
    2011-12-17 14:20:44 [SEVERE] 	at java.io.FileOutputStream.open(Native Method)
    2011-12-17 14:20:44 [SEVERE] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    2011-12-17 14:20:44 [SEVERE] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    2011-12-17 14:20:44 [SEVERE] 	at com.codisimus.plugins.phatloots.SaveSystem.save(SaveSystem.java:219)
    2011-12-17 14:20:44 [SEVERE] 	at com.codisimus.plugins.phatloots.listeners.CommandListener.setLoot(CommandListener.java:781)
    2011-12-17 14:20:44 [SEVERE] 	at com.codisimus.plugins.phatloots.listeners.CommandListener.onCommand(CommandListener.java:351)
    2011-12-17 14:20:44 [SEVERE] 	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    2011-12-17 14:20:44 [SEVERE] 	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    2011-12-17 14:20:44 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    2011-12-17 14:20:44 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
     
  14. Offline

    Codisimus

    I have fixed this for all my plugins so this fix will be in the next update
     
  15. Offline

    Insanehero

    When will the next update be?
     
  16. Offline

    Codisimus

    just updated (to version 1.3.0)
     
  17. Offline

    Insanehero

    Using version 1.4 and RB for 1.0

    I did notice that the error did take a bit longer than it did before. However, it still happening :L

    Code:
    2011-12-25 18:21:36 [SEVERE] [PhatLoots] Save Failed!
    2011-12-25 18:21:36 [SEVERE] java.io.FileNotFoundException: plugins/PhatLoots/ButterflyLoot.dat (Too many open files)
    2011-12-25 18:21:36 [SEVERE] 	at java.io.FileOutputStream.open(Native Method)
    2011-12-25 18:21:36 [SEVERE] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
    2011-12-25 18:21:36 [SEVERE] 	at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
    2011-12-25 18:21:36 [SEVERE] 	at com.codisimus.plugins.phatloots.PhatLootsMain.save(PhatLootsMain.java:415)
    2011-12-25 18:21:36 [SEVERE] 	at com.codisimus.plugins.phatloots.listeners.PlayerEventListener.onPlayerInteract(PlayerEventListener.java:56)
    2011-12-25 18:21:36 [SEVERE] 	at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335)
    2011-12-25 18:21:36 [SEVERE] 	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-12-25 18:21:36 [SEVERE] 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    2011-12-25 18:21:36 [SEVERE] 	at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:498)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.Packet14BlockDig.a(SourceFile:43)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    2011-12-25 18:21:36 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    
     
  18. Offline

    Codisimus

    hmm... I'll double check the code, wut other plugins are you running?
     
  19. Offline

    KingCody77

    Is it possible to add enchant items? If so you could make it copy the item in hand so the command isn't really long
     
  20. Offline

    bannanaguyTan

    Something is wrong with the plugin for my friends server we are running minecraft 1.2.3 have have been redoing the loot chests over 4 times. it would be really helpful if you could give some insite on our situation our plugins are: Minebackup, bPermissions, bchatmanager, bleedingmobs, noice, chest restock, chest shop etc etc none of that could really be use to you could it but if you could it would be great!
     
  21. Offline

    Jungle_Law

    Sorry to say but your guide sucks... You need to update it to make it easier understandable... Some of the commands arent even corret... Please update it! Cool plugin though.

    Would be absolutely awesome... But who understands german these days?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  22. I have a little problem every time i restart my server chest give only money but no items is there any idea why?
     
  23. Offline

    Sandermenke

    Hey, this is a sick plugin. It's just what a lot of servers need, but is it up to date with 1.2.5? And if it isn't it would be pretty awesome if it got updated to it.
    (Sorry, kinda of a noob to plugins, I just find them and my friend does them)
     
  24. Offline

    Codisimus

    yes it is currently up to date, check the Bukkit Dev page
     
  25. Offline

    EvilNucca

    I would just like to say that this is one of the best loot plugins ever created for chests. Using this plugin with multi-command I am able to have my players basically link any chest to a pre-made loot table I hid all the commands from them and basically have fixed the issue of chests re spawning loot across my world with only having to link one chest. I wanted to let all other Server Owners and Operators know about this.Some of you may think this is giving to much power to the players but when they have a 50% chance to get air and 1% chance to get random stuff they will not sit and farm one chest very long and they will continue to look for more chests. But for future releases can you break the permissions for linking and making chests would have saved me allot of issues. Something like permnode phatloots.link.<name> would be awesome. Also adding in a Log for linked chests would be nice just to stop those trolls that want to sit in their house placing chests which is not a real issue with the loot table I am using.
     

Share This Page