Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - coladict

1
Managed to fix it, and test it. There's just one draw-back, that if you load it at server start-up it doesn't take effect, because the game worlds aren't loaded yet. You have to call reload, or `gamerule doFireTick false` or `gamerule doFireTick true` to equalize the setting everywhere.

Code is pretty straight-forward.

Code Select
package net.jarjar;

import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.bukkit.GameRule;
import org.bukkit.World;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.ServerCommandEvent;
import org.bukkit.plugin.java.JavaPlugin;

public class FireTickDisablerPlugin extends JavaPlugin implements Listener {

@Override
public void onLoad() {
Logger log = getLogger();
List<World> worlds = getServer().getWorlds();
if (worlds.isEmpty()) {
log.info("FireTickDisablerPlugin: no worlds");
// worlds not loaded yet
return;
}
World first = worlds.get(0);
Boolean val = first.getGameRuleValue(GameRule.DO_FIRE_TICK);
for (int i = 1; i < worlds.size(); i++) {
World w = worlds.get(i);
log.log(Level.INFO, "FireTickDisablerPlugin: setting doFireTick to {0} in {1}", new Object[]{val, w.getName()});
w.setGameRule(GameRule.DO_FIRE_TICK, val);
}
}

@EventHandler
public void onServerCommand(ServerCommandEvent sce) {
if (sce.getCommand().equals("gamerule doFireTick true")) {
for (World w : getServer().getWorlds()) {
w.setGameRule(GameRule.DO_FIRE_TICK, Boolean.TRUE);
}
getLogger().info("fire ticking enabled");
sce.setCancelled(true);
}
else if (sce.getCommand().equals("gamerule doFireTick false")) {
for (World w : getServer().getWorlds()) {
w.setGameRule(GameRule.DO_FIRE_TICK, Boolean.FALSE);
}
getLogger().info("fire ticking disabled");
sce.setCancelled(true);
}
}

@Override
public void onEnable() {
super.onEnable();
getServer().getPluginManager().registerEvents(this, this);
}

}
2
General Discussion / Fire spreads in Nether. Possible fix
September 17, 2018, 08:33:19 am
Due to a bug, the doFireTick gamerule only works in the Overworld. I've implemented a tiny plugin that should potentially fix it, but setting-up a spigot server to test it is harder than learning to write a plugin (given I'm already a master in Java).

Attaching zip file containing the source code and compiled jar file

15:05 UTC edit: forgot one line, so replaced archive.
3
Claim your land / My marker
September 11, 2018, 04:22:31 am
Home base is at 1890x 1600z

Aside from an iron farm there's nothing of note yet, but there will be eventually.
4
Announcements / Re: Where's the like button?
August 10, 2017, 11:55:53 am
Now it's visible. It was gone for me, too, and I thought you'd just moved to a forum that doesn't have it.
5
Announcements / Re: New test server, please join
August 10, 2017, 11:55:10 am
The webmap isn't doing so hot. Kind of all-black and nothing else.
6
Announcements / Re: Server update - forum
August 01, 2017, 03:49:57 pm
Quote from: FishSandwich on August 01, 2017, 12:58:36 pm
Quote from: coladict on August 01, 2017, 12:11:49 pmA bit more than a day of notice would have been good, given that the site and forums were also down, so I couldn't even find anyone to ask what's going on.

You should consider getting discord and joining the group chat.
I just uninstalled TeamSpeak yesterday, which I hadn't used in years. Discord would suffer the same fate. I do still keep mIRC around for filesharing (DejaToons has rare shit you can't find on torrents), but rarely use it, and I'm always on ICQ with 0 contacts ;D
7
Announcements / Re: Server update - forum
August 01, 2017, 12:11:49 pm
A bit more than a day of notice would have been good, given that the site and forums were also down, so I couldn't even find anyone to ask what's going on.
8
Community / Re: Share Your Creations
July 14, 2017, 01:13:39 pm
The Red Ocean Monument https://imgur.com/a/2TFsD
It has every prismarine block replaced with granite, prismarine brick with red brick, dark prismarine brick with nether brick, sea lantern with redstone lamp (had to carve-out a few holes for them).









I haven't cleared-out the work chests, and I'm thinking of adding a few ladders to the upper levels where they can't normally be reached without aid.
9
Announcements / Re: The road to 1.12!
June 29, 2017, 12:00:37 pm
The mobs glitching into walls and suffocating has been around for at least as long as I've been playing (MC 1.4). It's not new and it was never fixed, no matter what lies Mojang tells you about it.
10
Announcements / Re: 1.12 server test!
June 20, 2017, 05:51:33 am
Since Prism is the only plugin we're waiting on, this seems to be the one place where they've continued supporting it for bukkit/spigot https://github.com/AddstarMC/Prism-Bukkit
Their commit logs indicate non-final 1.12 Spigot support, but who knows how compatible that is with the final release.
11
Announcements / Re: 1.12 server test!
June 18, 2017, 11:48:18 pm
Did you know you were making the city wall with silverfish eggs when you did it?
12
Community / Re: Share Your Creations
June 18, 2017, 07:36:19 am
Finally completed my golden statue of the Reverse Flash https://imgur.com/a/IZhnB.

I'm free to change my skin now, that I don't need to look at it in 3D for reference.
13
So the donkey has to touch the lava and the portal block simultaneously? I don't think that can actually be done without creative, because the portal gets destroyed. I might try it in local survival to be sure.
14
Announcements / Re: Dynamic Map!
January 20, 2017, 12:22:21 pm
Well that definitely didn't work for me from the office.
15
Announcements / Re: Dynamic Map!
January 20, 2017, 08:50:15 am
Will there be any way to login to the webmap to have it display my username when I talk? On my home PC I still have it logged-in from before and it just remembers me, but I can't find a way to do it from another computer.