0.4.2 - beta

Details

  • Filename
    admittance.jar
  • Uploaded by
  • Uploaded
    Feb 2, 2012
  • Size
    80.96 KB
  • Downloads
    867
  • MD5
    e084fc4a9d0e232454e60574a4426808

Supported Bukkit Versions

  • CB 1.1-R4
  • CB 1.1-R3

Changelog

BETA release 0.4.2

Added feature: prefix+suffix to make a sign "just toggle once". Example: "[admittance]~" instead of "[admittance]".
Bugfix for permission based access (does not take effect with default configuration. anyway).

Working on 1.1/CB 1940,  might well work with any CB that works with super-perms down to 1060.

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

(0.4.0 beta)
- (add) Now supporting trap-doors, fence-gates.
- (add) Sound effects for all mechanisms that can be triggered plus configurability.
- (add) Extra Sound effects playable for access granted, access denied.
- (add) Fill in player name if left blank, for economy/party/individual access.
- (add) All magic words are configurable (multiple words possible, first-line shortcuts possible).
- (add) Permissions (Superperms) support - permissions for commands, use of admittance, creation of signs, bypasses for creation.
- (add) Configuration-flag for disabling the access messages: show-access-messages
- (add) Configurable activation duration for each mechanism (in ticks).
- (add) Configurable cool-down time for signs, defaults to the maximum of ticks for the mechanisms.
- (add) Enable flags for mechanisms.
- (add) Minimum amount for money transfer is now configurable.
- (add) Option to log money transactions.
- (add) Experimental: load chunks if to be changed blocks are in not loaded chunks.
- (add) Added 'PluginLib*' to exclude-plugins for economy [little relevance for anyone except me.]
- (change) The configuration entry admittance.oppermissions is no longer used! Instead use admittance.permissions.op-bypass
- (bugfix) Levers should alternate, not be set to active and then deactive. [Buttons can only be powered, and then will deactivate.]
- (bugfix) Fixed resetting already reset mechanisms (use block and cast dynamically) [Also: Mechanisms destroyed while still activated.].
- (note) Interference of redstone power or manual interaction with admittance-powered mechanisms can lead to unexpected results.
- (bugfix) Mechanisms other than iron/wood-doors can not get switched by admittance if currently activated by admittance.
- (bugfix) All effects should only be played if the mechanism is switched.
- (bugfix) Disable admittance if reloading the configuration fails.
- (bugfix) Load configuration on enabling (probably a bug not in 3.6, but caused by refactoring)
- (bugfix, api) SimpleEconomy: withdrawing balance is now done inside of doTransfer and not before, inside of transfer.
- (workaround) For: New Bukkit versions return a non-null element for non-existing configuration nodes, even if preset is set to null.
- (internals) Added compat layer 0.0.6 for configuration.
- (internals) Added capability to go with multiple different magic words, also first line shortcuts for party, individual and public access.
- (internals) Changed priorities for events (critical: PlayerInteract=Highest, non-critical: BlockPlace=Normal)
- (internals) Refactored/re-implemented code of interaction checking (PlayerListener), use new sign syntax checking result.
- (internals) AdmittancePlayerListener.onAdmittance timeStampRelease is calculated before the loop
- (internals) Changed SimpleEconomy, implementations to have a getBalance method for more uniform checks and also for use by other plugins.
- (internals) Changed EconomyInterface to only use player names, not Bukkit-Player.
- (internals) Removed default implementations for Party/CanTrigger
- (internals) Some cleanup of code, refactoring.
- (internals) Use jardesc for jar export.

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