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 com.platymuus.bukkit.maptest; | |
import com.platymuus.bukkit.mapapi.MapAPI; | |
import com.platymuus.bukkit.mapapi.MapInfo; | |
import com.platymuus.bukkit.mapapi.TextRenderer; | |
import com.platymuus.bukkit.mapapi.TextRenderer.CharacterSprite; | |
import org.bukkit.Material; | |
import org.bukkit.command.Command; | |
import org.bukkit.command.CommandSender; |
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
users: | |
SpaceManiac: | |
permissions: | |
- 'spac.emaniac' | |
groups: | |
- 'spac' | |
groups: | |
default: | |
permissions: | |
- 'group.default' |
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
name: PermissionsBukkit | |
main: com.platymuus.bukkit.permissions.PermissionsMain | |
author: The Bukkit Team | |
website: http://bukkit.org | |
version: 1.0 | |
commands: | |
permissions: | |
description: Dev Commands | |
usage: | | |
/<command> reload - reload the configuration from disk. |
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
<repositories> | |
<repository> | |
<id>bukkit</id> | |
<name>Bukkit Artifactory</name> | |
<layout>default</layout> | |
<url>http://repo.bukkit.org/artifactory/repo/</url> | |
</repository> | |
</repositories> |
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> |
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
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
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
// 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
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 | |
*/ |