BottledExp

Logo

Version: 1.7.3

Features:

This Plugin allows your players to fill their XP into XP-Bottles, so they can store or sell them freely.

Installation:
  1. Place BottledExp.jar in the /plugins folder of your server.
  2. Enjoy!
Configuration:
  • The plugin will create a config.yml in which you can customize the 'price' of an bottle.
  • It it possible to change which item is consumed when filling XP into bottles, or whether it should be completely disabled. (on by default).
  • One is also able to choose how much money is needed to fill XP into bottles.
    • This feature requires Vault and an installed economy-plugin.
  • You are also able to change several language options.
Permissions:
  • bottle.use
    • Grants access to /bottle and /bottle [amount]
  • bottle.max
    • Grants access to /bottle max
    • bottle.use has to be given
  • bottle.reload
    • Grants access to /bottle reload
    • bottle.use has to be given
Commands:
  • /bottle
    • Shows the player's current XP
  • /bottle [amount]
    • Exchanges XP into [amount] bottles
  • /bottle max
    • Exchanges all XP into bottles.
  • /bottle reload
    • Reloads the config
Downloads:
Changelog:
  • Version 1.7.3:
    • Squeezes more accuracy out of the exp calculation formula.
  • Version 1.7.2:
    • Updated for Minecraft 1.7.2
    • Updated how experience gets calculated.
  • Version 1.7.1:
    • Added checkForPermission in the config.
    • Setting this option to false will allow acces to all commands except "/bottle reload" without any permissions.
    • This should make setting up the plugin easier for small servers.
  • Version 1.7.0:
    • Updated for Minecraft 1.6.4
    • Changed the way enchanting and using the Anvil was handled.
  • Version 1.6.2:
    • Updated for Minecraft 1.5.1
    • Updated how experience gets calculated.
  • Version 1.6.1:
  • Version 1.6:
  • Version 1.5.1:
    • Fixed a bug where the consuming of glass bottles (items) didn't work correctly
  • Version 1.5:
    • Added an option to consume money when filling XP into bottles. (Requires Vault)
  • Version 1.4:
    • Added an option to consume a specified item when filling XP into bottles
    • Added an alternate way of getting the players XP
  • Version 1.3.1:
    • Now checks whether enough space is left in the players inventory
  • Version 1.3:
    • Added /bottle reload
    • Fixed problems when enchanting items
  • Version 1.2:
    • Now supports permissions (PEX)
  • Version 1.1:
    • Fixed a bug where you could create an infinite stack of XP-bottles
  • Version 1.0:
    • Initial Release
Donate:

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of ProfPetrikov ProfPetrikov Mar 31, 2014 at 18:59 UTC - 0 likes

    @NeoSniperkiller: Go

    OpenBlocks is a forge mod that requires downloading and putting the OpenBlocks mod in your mod folder to play on a multiplayer server that has it.

    This is a craftbukkit mod that requires nothing for people to download to play on a server that has it.

  • Avatar of NeoSniperkiller NeoSniperkiller Mar 31, 2014 at 16:16 UTC - 0 likes

    erm isn't this feature already inside the mod "OpenBlocks" ?

  • Avatar of sacnoth0 sacnoth0 Mar 30, 2014 at 12:11 UTC - 0 likes

    <<reply 2104362>>

    Update is uploaded and waiting for approval - Thanks for your feedback :D

  • Avatar of westyman1904 westyman1904 Mar 30, 2014 at 09:40 UTC - 0 likes

    Unfortunately the xp dupes everytime you use it :/ You can /bottle max, then have more xp when you break it all on you. If you can whip up a fix for this, I'll put it on my server :)

    Edit: I know its like 1-2 xp, but I'm sure there will be people that will exploit it.

    Last edited Mar 30, 2014 by westyman1904
  • Avatar of BucketFreak BucketFreak Mar 07, 2014 at 14:53 UTC - 0 likes

    Hi! What about 1.7.2 support. Bitte! :)

  • Avatar of sacnoth0 sacnoth0 Feb 10, 2014 at 16:33 UTC - 0 likes

    @TehSteward: Go

    Yes, you can use the plugin without Vault, but some features like the economy part or support for other permission plugins than PermissionsEx will be disabled.

    When you want to grant everyone access to the plugin deactivate 'checkForPermission' in the config file.

  • Avatar of TehSteward TehSteward Feb 09, 2014 at 01:46 UTC - 0 likes

    Is it possible to not use Vault with this? I'm running a small server and am trying to keep it as lightweight as possible.

  • Avatar of sacnoth0 sacnoth0 Nov 15, 2013 at 04:49 UTC - 0 likes

    @AnorZaken: Go

    I already fixed that with the update on 03 Nov 2013, I just haven't updated the sourcecode on github yet.

    This it how it currently works:

    public static int getPlayerExperience(Player player) {
    		float exp = BottledExp.levelToExp(player.getLevel()) + player.getExp() * BottledExp.deltaLevelToExp(player.getLevel());
    		return (int)Math.floor(exp);
    	}
    
    	public static int deltaLevelToExp(int level) {
    		if (level <= 16)
    		{
    			return 17;
    		}
    		else if (level <= 31)
    		{
    			return 17 + (level-16)*3 ;
    		}
    		else
    		{
    			return 17 + (level-16)*3 + (level-31)*4 ;
    		}
    	}
    
    	public static int levelToExp(int level) {
    		int sumExp = 0;
    		for (int level_i = 1; level_i<= level; level_i++)
    		{
    			sumExp += deltaLevelToExp(level_i);
    		}
    		return sumExp;
    	}
    
  • Avatar of AnorZaken AnorZaken Nov 14, 2013 at 23:26 UTC - 0 likes

    player.getTotalExperience() appears to still be broken... can you please use the getLevel and getExp instead?
    (spend bottles to raise lvl, use anvil, bottle max, get all bottles back.)
    ( https://bukkit.atlassian.net/browse/BUKKIT-1483 has been unresolved since 1.2.4)
    (note that the formula there is probably incorrect)

    Last edited Nov 14, 2013 by AnorZaken

    See all my plugins in action at fudzer.se BFAK:90884911,d4b9e738c23131c8dace7064a54736d3fed01e8d5df253b3af2d0d047a4e2c5a

  • Avatar of sacnoth0 sacnoth0 Nov 10, 2013 at 17:49 UTC - 0 likes

    @CraftPimp: Go

    A normal user should have the permission to bottle.use and bottle.max
    bottle.reload reloads the config and should be admin only.

Table of contents

  1. 1 Features:

Facts

Date created
Apr 13, 2012
Categories
Last update
Mar 30, 2014
Development stage
Release
Language
  • deDE
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
BottledExp
Downloads
10,097
Recent files

Authors