blob: d9f9e3a82b5c4a5c885846866dae048789a22256 [file] [log] [blame] [raw]
/* Copyright 2015-2020 Rivoreo
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package rivoreo.minecraft.worldmgr;
import org.bukkit.World;
public class BukkitWorldThunderingProperty implements BukkitWorldProperty {
public String get(World world) throws Exception {
return world.isThundering() ? "on" : "off";
}
public void set(World world, String value) throws Exception {
world.setThundering(BukkitPlugin.parse_off_on_value(value));
}
}