Skip to content

[Battle Royale] Update v1.2.0-SNAPSHOT

Pre-release
Pre-release
Compare
Choose a tag to compare
@Klnsyf-Sun Klnsyf-Sun released this 25 Jul 09:11
· 3 commits to master since this release

Changes in v1.2.0-SNAPSHOT

This is an update for developers.

  • Modified the constructor of some events.
    • Now the constructors no longer accept String parameters like worldName/configName, which need to be instantiated to the corresponding World and YamlConfiguration instances.
    • Now the constructors no longer need CommandSender.
    • Removed some redundancy parameters.
      • For example, if a constructor requires Player, it no longer needs World:event.getPlayer().getWorld().
    • Affected events:
      • com.klnsyf.battleroyale.events.BattleEndEvent.java
      • com.klnsyf.battleroyale.events.BattleLoadEvent.java
      • com.klnsyf.battleroyale.events.BattlefieldPresetEvent.java
      • com.klnsyf.battleroyale.events.EntityGlowingEvent.java
      • com.klnsyf.battleroyale.events.PlayerInvisibleEvent.java
      • com.klnsyf.battleroyale.events.PlayerJoinBattlefieldEvent.java
  • Removed all validity checks from all listeners.
    • You should ensure the validity of the parameters when calling the event, rather than giving it to the listener for confirmation.

WARNING: This is a SNAPSHOT version, may have a huge amount of bugs.