0.4.0 - beta

Details

  • Filename
    admittance.jar
  • Uploaded by
  • Uploaded
    Jan 1, 2012
  • Size
    79.24 KB
  • Downloads
    423
  • MD5
    461c6ebc2f0aa97cbd884ad252c5ed6d

Supported Bukkit Versions

  • CB 1.1-R3
  • CB 1.1-R1

Changelog

BETA release 0.4.0

Adding fence-gate and trap-door, adding sound effects, adding permission support (superperms), extended configurability (enabling/disabling effects and mechanisms, magic words).

Working on 1.1/CB 1796 , most tests with CB 1619, some with CB 1637, RB 1597, RB 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.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.

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.

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.