This file contains hidden or 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 |
This file contains hidden or 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
cd [file dirname [info script]] | |
set file1 aaa.dlw | |
set file2 aaa2.dlw | |
set f1 [open $file1] | |
fconfigure $f1 -translation binary | |
set f2 [open $file2] | |
fconfigure $f2 -translation binary |
This file contains hidden or 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
Searching for web | |
Reading http://pypi.python.org/simple/web/ | |
Reading http://www.pythonweb.org/web/ | |
Reading http://www.pythonweb.org/web/release/ | |
No local packages or download links found for web | |
Best match: None | |
Traceback (most recent call last): | |
File "c:\python26\easy_install-script.py", line 8, in <module> | |
load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')() | |
File "c:\python26\lib\site-packages\setuptools-0.6c11-py2.6.egg\setuptools\command\easy_install.py", line 1712, in main |
This file contains hidden or 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
def ICArray(name, *args): | |
struct = Struct(name + "_data", *args) | |
array = MetaArray(lambda ctx: ctx[name + "_len"], struct) | |
return Struct(name, UBInt16(name + "_len"), array, struct) |
This file contains hidden or 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 net.glowstone.net; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* A list of all the sessions which provides a convenient {@link #pulse()} | |
* method to pulse every session in one operation. | |
* @author Graham Edgecombe | |
*/ |
This file contains hidden or 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
// Void non-death code. | |
@Override | |
public void onEntityDamage(EntityDamageEvent event) { | |
if (event.getEntity() instanceof Player && event.getEntity().getLocation().getY() < 0) { | |
((Player) event.getEntity()).setHealth(20); | |
//event.getEntity().teleport(plugin.getServer().getWorlds().get(0).getSpawnLocation()); | |
((Player)event.getEntity()).teleport(new Location(event.getEntity().getWorld(), 4, 65, 166)); | |
event.setCancelled(true); | |
} | |
} |
This file contains hidden or 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 hidden or 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
from solum.jar import JarFile | |
from solum.classfile.classfile import ClassFile | |
from solum.bytecode import Disassembler | |
from cStringIO import StringIO | |
from glob import glob | |
from os import path | |
def find(f, seq): | |
for item in seq: | |
if f(item): |
This file contains hidden or 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 net.glowstone.block; | |
import java.util.EnumMap; | |
import org.bukkit.Material; | |
import org.bukkit.inventory.ItemStack; | |
/** | |
* An enum containing an entry for every block describing that block's physical properties. | |
*/ |
This file contains hidden or 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
<pluginRepositories> | |
<pluginRepository> | |
<id>bukkit-plugins</id> | |
<url>http://repo.bukkit.org/artifactory/plugins-release</url> | |
</pluginRepository> | |
</pluginRepositories> |
OlderNewer