[INACTIVE][FUN/MECH/RPG] Fridges v0.3 - Add fridges and anvils to the game! [1060]

Discussion in 'Inactive/Unsupported Plugins' started by r3Fuze, Jun 5, 2011.

  1. Offline

    r3Fuze

    Fridges - Fridges you can put stuff into and anvils you can repair tools with!
    Download Fridges 0.3 ( .JAR )
    Download Fridges 0.2 ( .JAR )
    Source

    I will no longer be updating this. If you want to take this over then PM me.

    NOTE: You might think "Fridges haven't I seen this before?" and yes, you have.
    I did get permissions from Jayjay110 to release this. You can find the original here.


    Version: v0.3
    This plugin adds fridges that functions like chests and anvils that can repair tools

    If you are upgrading to 0.3 make sure you delete your old config.


    Dependencies:
    Features:
    • Fridges that functions like chests.
    • Anvils that can repair your tools for money
    • Permissions
    • iConomy
    • Simple protections
    Screenshot of an example usage:
    [​IMG]

    Video of how to build and use:


    Showcase from my awesome mate:



    How to use:
    Fridges:

    First you place a chest, then place an iron block ontop and another iron block ontop of that.
    Then you can rightclick the top ironblock to acces the chest at the bottom.

    Anvils:

    Place an iron block and place a stone pressureplate under it.
    Leftclick on the iron block with a used tool in your hand to display the repair cost.
    Rightclick on the iron block with a used tool to repair it.



    Config file:
    Base cost is the cost which would be charged if the tool was used completely.
    Code:
    anvils:
        enabled: true - if anvils can be used
        price:
            wood: 50 - base price for wood repair
            diamond: 500 - base price for diamond
            stone: 75 - price for stone
            gold: 250 - price for gold
            iron: 150 - price for iron
    fridges:
        enabled: true - if fridges can be used
    debug: false - if you want extra output to the console
    Commands:
    Code:
    /fridges reload - reload the config file
    Permissions nodes:
    Code:
    fridges.reload - for /fridges reload
    fridges.fridge.use - be able to open fridges
    fridges.fridge.break - you need this to break fridges
    fridges.anvil.repair - for when you repair your tool
    fridges.anvil.info - to get the cost of the item you are holding
    fridges.anvil.break - you need this to break anvils

    Posting bugs and errors:
    Be sure to include:
    • Your version of Bukkit
    • Your version of Fridges
    • Any other plugins that may cause the issue
    • The error from the console (if any)
    If you have any suggestion to new stuff i can add or things that needs improvement then feel free to post them below


    TODO:
    • Add iConomy support
    • Fridge protection so you cant just go around and destroy fridges
    • Locks/passwords
    Changelog:
    Version 0.3
    • Added simple protection
    • Completely recoded the plugin because Eclipse failed on me
    • Small bugfixes
    Version 0.2
    • Added anvils
    Version 0.1
    • First release
     
    woodzy likes this.
  2. Offline

    captainawesome7

    Pretty sure a plugin exactly like this was made not too long ago, might want to check that out?
     
  3. Offline

    r3Fuze

    Its not exactly like the plugin you are talking about. I talked with the original developer and he gave me permissions to release this.
     
  4. Offline

    captainawesome7

    It's fine, just wondering (things have been a little sketchy lately)
     
  5. Offline

    Jayjay110

    yar, coz I had to stop and work on other stuff :3
     
  6. Offline

    kerod

    i have an idea :3
    be able to make multiple fridge types using different blocks and you could add a microwave by having a furnace with a wooden plank and a jack-o-lantern on top :3
    [you could decide in a config.txt file]
     
  7. Offline

    Tytonidae

    I'm not sure this is possible, but I think it would be useful if you left a water bucket in a fridge for awhile it would create an ice blocks and the water bucket would return to normal state.
     
  8. Offline

    matthayez011

    it was my idea to emplement this into minecraft!
     
  9. Offline

    Goonpimp85

    I'm having a little trouble getting this to work right. I am using the new permissions along with McMyAdmin. I seem to have the intergration working just fine between the McMyAdmin dashboard and Permissions. The problem is I seem to not know how to add the fridge permission in. If I make myself a admin, I can access the fridge just fine. The trouble is making it work for everyone else. I inputed " fridges.fridge.use " into the permission field for everyone, but it wont do it. Admins have access to all commands automaticlly so I dunno what command it is using to allow the fridge for Admins. Any idea where I am going astray here?
     
  10. Offline

    r3Fuze

    Does permissions work for any of your other plugins.
    What version of CraftBukkit are you using?
    It could be because of McMyAdmin, i have never heard about it.
     
  11. Offline

    Goonpimp85

    Well, I do have a few other add-ons that do not seem to work also. Spawnx worked before I installed Permissions and now it does not work unless I an admin. I have Boatmod 5 installed and it has never worked, despite Permissions. The version of Craftbukkit installed is... well, I'm not completely sure. I rent a server thats using McMyAdmin and I can't seem the locate the bukkit version. This is what it shows me.

    [​IMG]
    So all I can really tell is that Bukkit is active. Im rather new to being admin of a Minecraft server, so any tips you have, I'd gladly take. :)
     
  12. Offline

    r3Fuze

    hmm.. Thats kinda weird. The only solution i can come up with is to make a version that doesn't use permissions but allows everyone to acces the fridge.
     
  13. Offline

    fatmarley

    Can you add permissions for users and creators. And then allow for iconomy payment?
     
  14. Offline

    r3Fuze

    0.3 will contain a very simple protection where you need the right permissions to break a fridge.
    The anvils already have iConomy payment and i really so no point in adding it to fridges. But if you can find a good use then tell me :)
     
  15. Offline

    fatmarley

    but who does the money go to? my players want the dosh!!!
     
  16. Offline

    r3Fuze

    Oh, ye i see. Once i get better at Java i'll probally add per-user fridges and anvils.
     
  17. Offline

    Semirotta

    work with permissions 2.7.* ?
    myself i have 2.7.4 coz i cannot get 3.* work..
     
  18. Offline

    r3Fuze

    I am not sure actually, i have only tested on 3.*
    If you get it to work with 2.7.* please tell me so i can add it to the main post :)
     
  19. Offline

    Semirotta

    Tried and i also have BOSEconomy, this used "Dollars" as money so i changed it to "Zils" which is my server money name
    Did not work

    Code:
    2011-06-30 11:40:50 [INFO] Starting minecraft server version Beta 1.6.6
    2011-06-30 11:40:50 [INFO] Loading properties
    2011-06-30 11:40:50 [INFO] Starting Minecraft server on 5.199.229.112:25565
    2011-06-30 11:40:50 [WARNING] **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    2011-06-30 11:40:50 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    2011-06-30 11:40:50 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    2011-06-30 11:40:50 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    2011-06-30 11:40:50 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-892-ga9ddbaa-b935jnks (MC: 1.6.6)
    2011-06-30 11:40:50 [INFO] DataSourcePool [HiddenDoor] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-06-30 11:40:50 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-06-30 11:40:50 [INFO] Entities enhanced[0] subclassed[1]
    2011-06-30 11:40:50 [SEVERE] Could not load 'plugins\MinecraftRestartController.jar' in folder 'plugins':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:64)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-30 11:40:50 [INFO] [Permissions] (Phoenix) was Initialized.
    2011-06-30 11:40:50 [INFO] Preparing level "world"
    2011-06-30 11:40:50 [INFO] Preparing start region for level 0 (Seed: -1352437314461818859)
    2011-06-30 11:40:51 [INFO] Preparing start region for level 1 (Seed: -2111628177631298019)
    2011-06-30 11:40:51 [INFO] Preparing spawn area: 60%
    2011-06-30 11:40:52 [INFO] [AnyoneSleep] Starting! (version 1.3 by R3ality)
    2011-06-30 11:40:52 [INFO] [AnyoneSleep] Found a permission system, using it!
    2011-06-30 11:40:52 [INFO] [BetterMechanics] Loading cauldron recipes from C:\Users\Jani\Desktop\MineCraft server\plugins\BetterMechanics\cauldron-recipes.yml
    2011-06-30 11:40:52 [WARNING] [BetterMechanics] Error loading cauldron recipes: no recipes found! (you probably messed up the yml format somewhere)
    2011-06-30 11:40:52 [WARNING] [BetterMechanics] Disabled cauldron because there were no recipes found in the config.
    2011-06-30 11:40:52 [INFO] [BetterMechanics] Using Permissions
    2011-06-30 11:40:52 [INFO] [BetterMechanics] Loading completed.
    2011-06-30 11:40:52 [INFO] BOSEconomy: Located Phoenix Permissions 2.7.4.
    2011-06-30 11:40:52 [INFO] BOSEconomy 0.6.2 enabled.
    2011-06-30 11:40:52 [INFO] CommandBook 1.5.2-customized enabled.
    2011-06-30 11:40:52 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled to be compatible with poorly written server wrappers.
    2011-06-30 11:40:52 [INFO] CommandBook: 0 banned name(s) loaded.
    2011-06-30 11:40:52 [INFO] CommandBook: 1 kit(s) loaded.
    2011-06-30 11:40:52 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-30 11:40:52 [INFO] CraftBukkitUpToDate version 2.5.6 is enabled!
    2011-06-30 11:40:52 [INFO] [Permissions] version [2.7.4] (Phoenix)  loaded
    2011-06-30 11:40:52 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-30 11:40:52 [INFO] CButD: CraftBukkit is up to Date
    2011-06-30 11:40:52 [INFO] Found and will use plugin Permissions v2.7.4
    2011-06-30 11:40:52 [INFO] CursedLands version 0.5 is enabled!
    2011-06-30 11:40:52 [INFO] DropChest version 0.7.8 is enabled!
    2011-06-30 11:40:52 [INFO] File C:\Users\Jani\Desktop\MineCraft server\plugins\DropChest\dropchest.cfg not found.
    2011-06-30 11:40:52 [INFO] Duels version 0.6.1 ENABLED (Using permissions)
    2011-06-30 11:40:52 [INFO] [ElectricFence]: ElectricFence 1.4.1 has been enabled!
    2011-06-30 11:40:52 [INFO] [ElectricFence]: Configuration file loaded
    2011-06-30 11:40:52 [INFO] FenceStack version 1.13 loaded.
    2011-06-30 11:40:52 [INFO] [Fridges] has been enabled.
    2011-06-30 11:40:52 [INFO] [Fridges] hooked into Permissions.
    2011-06-30 11:40:52 [INFO] [Fridges] could not find iConomy. Disabling.
    2011-06-30 11:40:52 [INFO] [Fridges] has been disabled.
    2011-06-30 11:40:52 [INFO] HiddenDoor: Trying to enable version 0.2 ...
    2011-06-30 11:40:52 [INFO] HiddenDoor: Configuration file loaded.
    2011-06-30 11:40:52 [INFO] HiddenDoor: Loaded 2 hidden doors.
    2011-06-30 11:40:52 [INFO] HiddenDoor: Version 0.2 enable.
    2011-06-30 11:40:52 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Woodcutter is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Woodcutter is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Miner is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Miner is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Builder is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Builder is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Digger is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Digger is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Farmer is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Farmer is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !
    2011-06-30 11:40:52 [INFO] [Jobs v2.1.1] has been enabled succesfully.
    2011-06-30 11:40:52 [INFO] [Jobs] Successfully linked with BOSEconomy.
    2011-06-30 11:40:52 [INFO] [Jobs] Successfully linked with Permissions.
    2011-06-30 11:40:52 [INFO] Lockette version 1.3.8 is being enabled!  Yay!  (Core version 1.0)
    2011-06-30 11:40:52 [INFO] Lockette: Detected craftbukkit build [935] ok.
    2011-06-30 11:40:52 [INFO] Lockette: Linked to Permissions plugin version 2.7.4
    2011-06-30 11:40:52 [INFO] Lockette: Using ops file for admin permissions.
    2011-06-30 11:40:52 [INFO] Lockette: Ready to protect your containers.
    2011-06-30 11:40:52 [INFO] [MagicCarpet] MagicCarpet version 1.5.5 is enabled!
    2011-06-30 11:40:52 [INFO] [MagicCarpet] Take yourself wonder by wonder, using /magiccarpet or /mc.
    2011-06-30 11:40:52 [INFO] [MagicCarpet] Using Permissions.
    2011-06-30 11:40:52 [INFO] Memory max: 1037959168 bytes
    2011-06-30 11:40:52 [INFO] Memory total: 1037959168 bytes
    2011-06-30 11:40:52 [INFO] Remote Toolkit Plugin V0.45b enabled!
    2011-06-30 11:40:52 [INFO] [MobBounty] v4.04 (Oxygen) enabled.
    2011-06-30 11:40:52 [INFO] [MobBounty] Developed by: [Mattera, Steven (IchigoKyger)].
    2011-06-30 11:40:52 [INFO] [MobBounty] Special Thanks to: nijikokun for the Register API.
    2011-06-30 11:40:52 [INFO] [MobBounty] Config loaded.
    2011-06-30 11:40:52 [INFO] [MobBounty] Permission plugin was found (Permissions v2.7.4).
    2011-06-30 11:40:52 [INFO] [MobBounty] Payment plugin was found (BOSEconomy v0.6.2).
    2011-06-30 11:40:52 [INFO] [MultipleHomes] Settings Loaded!
    2011-06-30 11:40:52 [INFO] [MultipleHomes] MultipleHomes version 0.7 is enabled!
    2011-06-30 11:40:52 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    2011-06-30 11:40:52 [INFO] [Showcase] Registered type [finite] (0 items loaded)
    2011-06-30 11:40:52 [INFO] [Showcase] Registered type [infinite] (2 items loaded)
    2011-06-30 11:40:52 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    2011-06-30 11:40:52 [INFO] [Showcase] version 0.6.12 has been enabled.
    2011-06-30 11:40:52 [INFO] [Showcase] Payment method found (BOSEconomy version: 0.6.2)
    2011-06-30 11:40:52 [INFO] [TpC] 1.1 Enabled!
    2011-06-30 11:40:52 [INFO] UnlimitedLava 0.2 is enabled!
    2011-06-30 11:40:52 [INFO] WorldEdit 4.6 enabled.
    2011-06-30 11:40:52 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-30 11:40:52 [INFO] WorldGuard: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world) Single session is enforced.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world) TNT ignition is PERMITTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world) Lighters are PERMITTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world) Lava fire is blocked.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world) Fire spread is UNRESTRICTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: Loaded configuration for world 'world"
    2011-06-30 11:40:52 [INFO] WorldGuard: (world_nether) Single session is enforced.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world_nether) TNT ignition is PERMITTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world_nether) Lighters are PERMITTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world_nether) Lava fire is blocked.
    2011-06-30 11:40:52 [INFO] WorldGuard: (world_nether) Fire spread is UNRESTRICTED.
    2011-06-30 11:40:52 [INFO] WorldGuard: Loaded configuration for world 'world_nether"
    2011-06-30 11:40:52 [INFO] WorldGuard: 2 regions loaded for 'world'
    2011-06-30 11:40:52 [INFO] WorldGuard 5.2.2 enabled.
    2011-06-30 11:40:52 [INFO] [XcraftGate v0.7.1] hooked into Permissions 2.7.4
    2011-06-30 11:40:52 [INFO] [XcraftGate v0.7.1] by Engelier loaded.
    2011-06-30 11:40:52 [INFO] [XcraftGate v0.7.1] loading world world_nether (NETHER)
    2011-06-30 11:40:52 [INFO] [XcraftGate v0.7.1] loading world world (NORMAL)
    2011-06-30 11:40:52 [INFO] [XcraftGate v0.7.1] loaded 2 gates
    2011-06-30 11:40:52 [INFO] Done (0,204s)! For help, type "help" or "?"
    2011-06-30 11:40:52 [INFO] [Showcase] Autosaved
    2011-06-30 11:41:02 [INFO] The automatic update-Check only work every 6 hours, the last check was 20 minutes ago.
    2011-06-30 11:41:10 [INFO] semirotta [/5.199.229.112:49646] logged in with entity id 20 at ([world] -12.589588794813029, 65.0, -628.8827072650083)
    2011-06-30 11:41:12 [SEVERE] Could not pass event PLAYER_INTERACT to Fridges
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
        at me.r3Fuze.Fridges.FridgesPlayerListener.onPlayerInteract(FridgesPlayerListener.java:64)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:213)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:223)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: com.iConomy.iConomy
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 14 more
    
     
  20. Offline

    r3Fuze

    You need iConomy for 0.2 BUT 0.3 will feature support for most economy plugins. So staty tuned :)
     
  21. Offline

    Semirotta

    i will. I want the anvil ^^
     
  22. Offline

    fatmarley

    I am using permissions 2.7.2 and have no issues. Other than my feature request..wink wink
     
  23. Offline

    ferrousphantom

    is there a way i could make the anvil work on armor too?
     
    r3Fuze likes this.
  24. Offline

    emcitement

    This looks nice. Basic and to the point. Refridgerators will do well in restaurants.
     
  25. Offline

    TruffleDucks

    Very nice
     
  26. Offline

    Sathex

    I have a question.

    Lets say my server sells a Stoneaxe for 100 coins, and a Diamondaxe for 1000 coins.

    Will it cost the same to repair both? Or is that something i can control in a config file, if there is any?

    But yes! A GREAT Plugin :)
     
  27. Offline

    fatmarley

    need a way to lock fridges
     
  28. Offline

    r3Fuze

    I will probally add that later, when i figure it out :)

    Coming in 0.3 once i get all the errors solved :)

    Theres a config in which you can set the 'base value' for each tool. The base value is basicly how much it would cost to repair the tool if it had 1 use left.

    Thank you :)

    Thanks :)
    Thank you :)
     
  29. Offline

    Sathex

    Okay, Thx!
     
  30. Offline

    Tymek68

    This doesn't work for me. Am I doing something wrong? I've got 1.7.3 for both the server and Bukkit, and I'm using GroupManager for permissions. I'm an Admin and an op, and I've also added the node for the fridges to my permissions.
     

Share This Page