admittance 1.1.0

Details

  • Filename
    admittance.jar
  • Uploaded by
  • Uploaded
    Nov 25, 2014
  • Size
    91.81 KB
  • Downloads
    428
  • MD5
    f77db1f36b48a7a60e606d030fcb3382

Supported Bukkit Versions

  • CB 1.7.9-R0.2

Changelog

1.1.0

Adapt "somehow":
* Removed iConomy5, MultiCurrency, Factions support.
* All economy APIs are still accessed by text (whatever those do with it). This could become a problem with name changing (permission based access could be used).

Economy works with: Essentials Economy 2.6.1, iConomy6, BOSEconomy 0.7.2, (PluginLibSharedLibrary, needs custom plugin)
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.]

(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.