SetWeather: Difference between revisions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(string weather);}} | |||
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}World.SetWeather(Weather weather);}} | |||
=== Required Arguments === | === Required Arguments === | ||
*'''weather:''' parameter input should be in '''string''' or '''Weather''' type | *'''weather:''' parameter input should be in '''string''' or '''Weather''' type | ||
Revision as of 13:01, 27 November 2019
Sets the weather.
Syntax
void NAPI.World.SetWeather(string weather);
void NAPI.World.SetWeather(Weather weather);
Required Arguments
- weather: parameter input should be in string or Weather type
Example
C# Syntax
Example
[Command("clrweather", Description = "Clears the weather")]
public void Clear_Weather(Client player)
{
NAPI.World.SetWeather(Weather.CLEAR);
}