Code Monkey home page Code Monkey logo

weatherman's Introduction

WeatherMan

A Minecraft (bukkit) plugin

WeatherMan allows you to change biomes and repopulate areas ingame with commands, magic-wand and a sign, controlled by redstone power. WorldEdit selections and WorldGuard regions supported.

Download

Latest dev build Snapshot

Video

CameraObscura Video

See more videos here.

Features

  • Change biomes (you can use: commands, wands, signs, WorldEdit selections and WorldGuard regions)
  • Repopulate area according to biome that was previously changed
  • Control weather locally: for player, for region, for biome and for whole world.
  • Grow trees or cut them off using special wands
  • Control biome changing (toggle two biomes) with sign controlled by redstone power.
  • Check biome in a your location or inform you about biome changing while you traveling
  • Preventing snow-forming and ice-forming in defined biomes.

Why do I want it?

If you need to change biomes, grow new forest, or going to allow your players to do it - you must install WeatherMan :) If you need to "curse" any player with unstoppable rain you can find this plugin useful too.

How Do I Install It?

Just copy it in your server /plugins/ folder.

How to use it?

  • Install
  • Use command /wm set biome:<biome> radius:<radius> to change biome around you
  • Use command /wm set biome:<biome> to change biome at area selected using WorldEdit
  • Use command /wm set biome:<biome> region:<region name> to change biome at WorldGuard region defined by name
  • Use command /wm replace biome:<biome> fill:true to change biome in your location to new one
  • Use command /wm give [biome | woodcutter | depopulator | forester] to obtain all or specified wand.
  • Use command /wm wand to enable wand mode (define biome and radius with commands /wm wand biome: radius: tree: Right-click with magic wand and you'll shoot the snowball that will change the biome around the hit-point, remove or grow trees.
  • Create sign and type [biome] in second line, radius value in third, and biome names in first and forth lines. You can set word "replace" in third line if you need to replace the full biome. Now you can use redstone power to toggle between two biomes.

Commands

General Commands:

/wm help - display help and command list
/wm check - check biome in player location
/wm info - toggle walk-info mode (inform player when he moves from one biome to another)
/wm list [tree | biome name mask] - list avaliable biome types (or tree types)
/wm wand [biome:<biome> radius:<radius> tree:<tree> - toggles wand mode or configure wand parameters
/wm give <biome | woodcutter | depopulator | forester> - give defined wand (brush)

Change Biome Commands

/wm set biome:<biome|original> radius:<radius> - set the biome around the player (size defined by radius)
/wm set biome:<biome|original> loc:<world,x,z> - set the biome around location (size defined by radius)
/wm set biome:<biome|original> region:<region name> - set the biome at WorldGuard region
/wm set biome:<biome|original> - set the biome in a WorldEdit selection
/wm set biome:<biome|original> loc:<world,x,z> loc2:<world,x,z> - set the biome at area defined by two locations

Replace Biome Commands

/wm replace biome:<biome|original> source:<biome> radius:<radius> - replace biome with around the player (size defined by radius)
/wm replace biome:<biome|original> source:<biome> loc:<world,x,z> - replace biome with around location (size defined by radius)
/wm replace biome:<biome|original> source:<biome> region:<region name> - replace biome with at WorldGuard region
/wm replace biome:<biome|original> source:<biome> - replace biome with the biome in a WorldEdit selection
/wm replace biome:<biome|original> source:<biome> loc:<world,x,z> loc2:<world,x,z> - replace biome with at area defined by two locations
/wm replace biome:<biome|original> fill:true - replace current biome in player location with
/wm replace biome:<biome|original> fill:true loc:<world,x,z> - replace current biome in location <world,x,z> with

Repopulate Area Commands

/wm populate radius:<radius> - repopulates area around the player (size defined by radius)
/wm populate loc:<world,x,z> - repopulates area around location (size defined by radius)
/wm populate region:<region name> - repopulates area inside WorldGuard region
/wm populate - repopulates area inside WorldEdit selection
/wm populate loc:<world,x,z> loc2:<world,x,z> - repopulates area defined by two locations

Weather Commands

/wth player <player> <rain|clear|remove> - set personal player weather to rain, clear or remove settings
/wth region <region> <rain|clear|remove> - set weather in region to rain, clear or remove settings
/wth biome <biome> <rain|clear|remove> - set weather in biome to rain, clear or remove settings
/wth world <world> <rain|clear|remove> - set weather in biome to rain, clear or remove settings
/wth <player|region|biome|world> - list the players, regions, biomes, worlds where weather states are changed

Local Time Commands

/wtm player [<player> <HH:MM|day|night|remove>] — configure player personal time
/wtm region [<region> <HH:MM|day|night|remove>] — configure local region time
/wtm biome [<biome> <HH:MM|day|night|remove>] — configure local biome time
/wtm world [<world> <HH:MM|day|night|remove>] — configure local world time

How to revert back to original biomes

If you need to set back an original biomes at defined area, you can use original biome type with commands /wm set, /wm replace, /wm biome (and use wand to change biomes). Command /wm replace source: biome: supporting "original" only as biome parameter (<target biome>).

Permissions

weatherman.basic - allows to use commands /wm help, /wm check, /wm list
weatherman.cmdbiome - allows to use command /wm set and /wm fill
weatherman.sign - allows to create [biome] signs
weatherman.wandbiome - allows to use wand and commands /wm wand, /wm radius, /wm biome
weatherman.config - allows to setup plugin with command /wm cfg
weatherman.weather - allows to use local weather command /wth
weatherman.time - allows to use local time command /wtm

Update checker and bStats

WeatherMan includes two features that use your server internet connection. First one is bStats, that used to collect information about the plugin (versions of plugin, of Java.. etc.) and second is update checker, checks new releases of plugin after WeatherMan startup and every half hour. This feature is using API provided by dev.bukkit.org. If you don't like this features you can easy disable it. To disable update checker you need to set parameter "version-check" to "false" in config.yml. Obtain more information about bStats and learn how to switch off it, you can read here.

weatherman's People

Contributors

dordsor21 avatar fromgate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

weatherman's Issues

how to obtain

i use this plugin, but in 1.11 i have a warning on start.
new mob is'nt set in the old version. (i think)

bukkit's site is not updated.
can you explain how compile it, or other ?¿

Attempt at command "/wth player [player] rain"

Using "Last stable build (#7), 12 hr ago)" from the athion build

Attemping to use "/wth region [region] clear/rain" commands gives:
[19:57:46 INFO]: [player] issued server command: /wth region ironlands rain
and nothing else (no error), yet nothing visible happens for that region (no weather changes).

and attempting to use "/wth player [player] clear/rain" command gives with no visible changes:
[19:43:48 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'wth' in plugin WeatherMan v1.1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
at org.bukkit.craftbukkit.v1_11_R1.CraftServer.dispatchCommand(CraftServer.java:650) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1344) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1179) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_112]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_112]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_112]
Caused by: java.lang.NullPointerException
at me.fromgate.weatherman.playerconfig.PlayerConfig.savePlayerData(PlayerConfig.java:232) ~[?:?]
at me.fromgate.weatherman.playerconfig.PlayerConfig.savePlayerData(PlayerConfig.java:222) ~[?:?]
at me.fromgate.weatherman.playerconfig.PlayerConfig.setLastWeather(PlayerConfig.java:97) ~[?:?]
at me.fromgate.weatherman.playerconfig.PlayerConfig.isWeatherChanged(PlayerConfig.java:102) ~[?:?]
at me.fromgate.weatherman.localweather.LocalWeather.setPlayerRain(LocalWeather.java:119) ~[?:?]
at me.fromgate.weatherman.commands.wth.WthPlayer.execute(WthPlayer.java:57) ~[?:?]
at me.fromgate.weatherman.commands.Cmd.executeCommand(Cmd.java:87) ~[?:?]
at me.fromgate.weatherman.commands.Commander.onCommand(Commander.java:101) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
... 15 more

please update to 1.12.2

issued server command: /wm give biome
[00:17:27 INFO]: [WeatherMan] his version of WeatherMan is not compatible with CraftBukkit git-Spigot-7754231-94b0980 (MC: 1.12.2)
[00:17:27 INFO]: [WeatherMan] Features depended to craftbukkit version will be disabled!
[00:17:27 INFO]: [WeatherMan] + It is strongly recommended to update WeatherMan to latest version!
[00:17:27 INFO]: [WeatherMan] + Check updates at http://dev.bukkit.org/server-mods/wm/
[00:17:27 INFO]: [WeatherMan] + or use this version at your own risk.
[00:17:27 WARN]: java.lang.NoSuchMethodException: net.minecraft.server.v1_12_R1.ChunkProviderServer.saveChunk(net.minecraft.server.v1_12_R1.Chunk)
[00:17:27 WARN]: at java.lang.Class.getDeclaredMethod(Class.java:2130)
[00:17:27 WARN]: at me.fromgate.weatherman.util.NMSUtil.(NMSUtil.java:127)
[00:17:27 WARN]: at me.fromgate.weatherman.queue.WMChunk.processChunk(WMChunk.java:91)
[00:17:27 WARN]: at me.fromgate.weatherman.queue.Queue.processQueue(Queue.java:108)
[00:17:27 WARN]: at me.fromgate.weatherman.queue.QueueManager$1.run(QueueManager.java:133)
[00:17:27 WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:71)
[00:17:27 WARN]: at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353)
[00:17:27 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:739)
[00:17:27 WARN]: at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406)
[00:17:27 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679)
[00:17:27 WARN]: at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577)
[00:17:27 WARN]: at java.lang.Thread.run(Thread.java:745)

Could not pass event PlayerMoveEvent to WeatherMan v1.1.0

Using "Last stable build (#7), 12 hr ago)" from the athion build

This happens when anyone moves:
[19:13:13 ERROR]: Could not pass event PlayerMoveEvent to WeatherMan v1.1.0
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot_server.jar:git-Spigot-7d78b81-f709362]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:615) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PacketPlayInFlying.a(SourceFile:126) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PacketPlayInFlying$PacketPlayInPositionLook.a(SourceFile:18) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_112]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_112]
at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:739) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:675) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:574) [spigot_server.jar:git-Spigot-7d78b81-f709362]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_112]
Caused by: java.lang.NullPointerException

Occasionally the line:
at net.minecraft.server.v1_11_R1.PacketPlayInFlying$PacketPlayInPositionLook.a(SourceFile:18) [spigot_server.jar:git-Spigot-7d78b81-f709362]

will instead say
at net.minecraft.server.v1_11_R1.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:18) [spigot_server.jar:git-Spigot-7d78b81-f709362]

spigot or bukkit 1.13.*

Is the plugin being developed for this version? Links specified in latest dev build are non-working

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.