Skip to content

NwPluginAPI 13.1.2

Latest
Compare
Choose a tag to compare
@ced777ric ced777ric released this 06 Dec 21:14
· 8 commits to master since this release
2749a86

This release is currently shipped with the dedicated server build.

Added OfflinePlayer.cs.
Added ReservedSlots.cs.
Added Whitelist.cs.
Added DamageType.cs.
Events are now defined using EventArg classes.

Round.cs by #161

  • Added IsRoundEnded. Please add RoundSummary.singleton.RoundEnded => RoundSummary.singleton._roundEnded.

FacilityDoor.

  • Added Name variable.

Resolves #169

Commands by #161

  • Fixed the NWAPI commands that were not registered.

  • Now you can reload the plugins configuration.

  • Now you can reload the gameplay configuration.

fix #167 and resolves #166

Player.cs by #161

  • Fixed a bug that ArtificialHealth gave when trying to obtain or change the AHP of a player who is SCP.

  • Fixed a bug when trying to use ArtificialHealth since it was being incorrectly invoked.

Map.cs by #161

  • Added Map.Cameras, Map.PocketDimensionTeleports, Map.Lockers, Map.Elevators, Map.TeslaGates, Map.Generators.

  • Added Map.Broadcast(ushort duration, string message, Broadcast.Flag flag, bool clearPrevius = false).

  • Added Map.ClearBroadcast().

  • Added Map.ForceDecontamination().

  • Added enum Map.DecontaminationStatus.

  • Added Map.GetRandomRoom(FacilityZone zone) return RoomIdentifier or null.

  • Added Map.FlickerLights(float duration, FacilityZone zone).

  • Added Map.FlickerLights(float duration, IEnumerable<FacilityZone> zones).

  • Added Map.FlickerAllLights(float duration).

  • Added Map.TurnOnAllLights().

  • Added Map.TurnOnLights(FacilityZone zone).

  • Added Map.TurnOnLights(IEnumerable<FacilityZone> zones).

  • Added Map.ChangeColorOfAllLights(Color color, float intensity = 0).

  • Added Map.ChangeColorOfLights(Color color, FacilityZone zone, float intensity = 0).

  • Added Map.ChangeColorOfLights(Color color, IEnumerable<FacilityZone> zones, float intensity = 0).

  • Added Map.ResetColorOfAllLights.

  • Added Map.ResetColorOfLights(FacilityZone zone).

FacilityDoor.cs by #168

  • Added FacilityDoor.Get(RoomIdentifier)
  • Added FacilityDoor.Get(FacilityZone)

AssemblyLoader.cs by #170

  • Fixed plugin Load order being inverted.

Player.cs by #173

  • Added Player.RemoveItem(ItemBase)
  • Added Player.RemoveItem(ItemType. amount)