This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.hunterboerner.war; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.entity.EntityDamageByEntityEvent; | |
import org.bukkit.entity.Player; | |
import org.bukkit.entity.Entity; | |
public class DamageListener implements Listener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public long getTime(){ | |
long time = getServer().getWorld("world").getTime(); | |
return time; | |
} | |
// somewhere | |
bool justMidnight = false; | |
... | |
getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bytes 0 to 7 are 'SUPREME!' -> Or, probably, other game name abbreviations | |
Bytes 8 to 39 are the builder name | |
Bytes 40 to 71 are the world name | |
Byte 72 is the number of levels in the world | |
===== Level Segment ===== | |
2 bytes, for level dimensions? | |
32 bytes for name | |
Null-teminated string for song |