This plugin is currently marked as broken and unavailable for download
Permissions
mapflood.use- Allows player to use the/floodcommandmapflood.resetoceanlevel- Allows player to use the/resetoceanlevelcommand
Commands
/flood <increment> <speed>- Flood the map/stopflood- Stop flooding the map/resetoceanlevel- Reset the ocean level to 0
Hooks
Called just before flooding starts. Returning true/false value overrides default behaviour. Useful for canceling the flooding from starting.
private bool MapFlood_CanStartFlood(BasePlayer player, float level, float rate)
{
Puts("MapFlood_CanStartFlood Works!");
return true;
}
Called just before flooding stops. Returning true/false value overrides default behaviour. Useful for canceling the flooding from stopping.
private bool MapFlood_CanStopFlood(BasePlayer player)
{
Puts("MapFlood_CanStopFlood Works!");
return true;
}
Called just before the ocean level is reset. Returning true/false value overrides default behaviour. Useful for canceling ocean level reset.
private bool MapFlood_CanResetOceanLevel(BasePlayer player)
{
Puts("MapFlood_CanResetOceanLevel Works!");
return true;
}
Called after the flooding has started. No return behaviour.
private void MapFlood_OnFloodingStarted(BasePlayer player, float level, float rate)
{
Puts("MapFlood_OnFloodingStarted Works!");
}
Called after the flooding has stopped. No return behaviour.
private void MapFlood_OnFloodingStopped(BasePlayer player)
{
Puts("MapFlood_OnFloodingStopped Works!");
}
Called after the ocean level has reset. No return behaviour.
private void MapFlood_OnOceanLevelReset(BasePlayer player)
{
Puts("MapFlood_OnOceanLevelReset Works!");
}
API
Returns true if the map is flooding.
bool MapFlood_IsFlooding()
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

