0.5.2 - beta/dev

Details

  • Filename
    admittance.jar
  • Uploaded by
  • Uploaded
    Feb 29, 2012
  • Size
    96.07 KB
  • Downloads
    1,204
  • MD5
    0faf24ffef5a1e25f263e8d651216e81

Supported Bukkit Versions

  • CB 1.1-R4

Changelog

BETA/DEV release 0.5.2 [1.1-R5 ready]

(0.5.2) Bugfix for Vault (NullPointerException)
(0.5.1) Improved Vault support for economy plugins enabling after Vault.
(0.5.0) Switched to the new event system. Minor internal changes. Should be R5-ready.

Added (experimental/untested) support for:
* Economy: Vault
* Party: Factions, Heroes (Party name = leaders name)
* CanTrigger checks: Factions (Might only work with newest version of Factions.)
! If you want to use these, test them ! If you use WorldGuard with factions, you should either add WorldGuard to the exclude-plugins list for cantrigger configuration (to use factions for those), or add Factions to the list to use WorldGuard directly.

Working on 1.1/CB 1940,  might well work with lower CBs that works with super-perms and the new event system.
This version should also work with latest dev builds of CraftBukkit 1.1-R5 (1950+).

Economy works with: Essentials Economy 2.6.1, iConomy5 and iConomy6, BOSEconomy 0.7.2, MultiCurrency 0.11, PluginLibSharedLibrary
CanTrigger checks compatible with: WorldGuard 5.2 and above
PartyInterface compatible with: mcMMO 1.1.14 and above
(Future versions of the plugins should work fine, unless they change their API.)

NO WARRANTY (anyway)
Test the features that you want to build on. I recommend  to check if non-ops can place signs next to land they can not build on (WorldGuard), and if payments work (subtract from a, add to b) for the fee option (same code as with the buy-exclusive option).

NOTES:
BOSEconomy: do mind, that BOSEConomy uses "coin" as currency, initially :)
iConomy: It is recommended for fractions to set the options Single and Separate and maybe Minor for iConomy all to false (default). Because iConomy is not providing an API call for getting the currencyName, admittance will attempt to parse it from the format(amount) method that iConomy does provide. [Subject to testing: might be no problem with current parsing method.]

CHANGELOG:

(0.5.2)
- (bugfix) VaultEconomy: NullPointerException

(0.5.1)
- (bugfix) Better compatibility for Vault, if other economy plugins are enabled after Vault.

(0.5.0)
- (add) Economy support: Vault
- (add) Team/Party support: Heroes, Factions
- (add) CanTrigger support: Factions
- (refactor) Renamed some internal methods and interface implementations.
- (internals) mcMMO: attempt to make party-with work even if other player is offline.
- (internals) Economy: Added isAcceptedCurrency check to all getBalance methods (returns 0 if not accepted).

(0.4.3)
- (refactor) Switch to new event system.
- (update) compatlayer 0.1.0

(0.4.2 beta)
- (add) Toggle prefix/suffix, to not switch back state on activation.
- (bugfix) Permission based access: Parsing the wrapped part was buggy.

(0.4.1 beta)
- (add) Permission based access.

(since 0.4.2)

  • Toggle-once- signs do not harmonize with normal admittance-signs, in that if you activate a mechanism by toggle-once, then activate the same mechanism with a normal admittance sign, the mechanism will switch back but not forth again, as one might expect (this slightly limits the use, but should be a very rare potential application).
  • Buttons can not be toggled once, they will switch back normally, *but* with the switching duration of admittance signs, not that of buttons [Buttons might get deactivated for toggle-once-signs in one of the next versions, depending on feedback!].

GENERAL:
- The Economy interfaces are kind of static, so if you change the currency during runtime, it might break unless you reload ('/admittance reload' is sufficient.).
- For iConomy and BOSEconomy banks will not be used but the "ordinary" add/subtract methods.
- Because iConomy and Essentials are not providing an explicit API call for getting the currencyName (i could not find it), admittance will attempt to parse it from the format(amount) method that iConomy does provide. This work for results like "$1" or "1.0 $" or even "1 whatever 0 coins", while coins would be ignored.
- Admittance will not search for other compatible plugins on deactivation of plugins, then a "/admittance reload"is necessary. if there will not be another compatible plugin for the same purpose being enabled afterwards.
- Mechanisms triggered just before plugin shutdown will not be reset on disabling, neither on enabling.

If in doubt, check your serverlog for "admittance -" [...] entries on the first reload or restart after adding the jar to the plugin folder, it will state what is used for PartyInterface, EconomyInterface, CanTriggerInterface - the interfaces will be set either at enabling admittance or later, when a compatible plugin has been enabled. The command 'admittance info' will state which interfaces are used and if they are enabled.