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
#!/bin/bash | |
cleanup() { | |
if [ -n "$MYSQL_CONTAINER_ID" ]; then | |
echo "Stopping MySQL container..." | |
sudo docker stop $MYSQL_CONTAINER_ID > /dev/null | |
fi | |
if [ -n "$WORDPRESS_CONTAINER_ID" ]; then | |
echo "Stopping WordPress container..." |
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
// don't forget to add craftbukkit.jar of your server version. seriously. | |
Location loc = player.getLocation(); | |
World world = player.getWorld(); | |
Block block = world.getBlockAt(loc); | |
BlockState state = block.getState(); | |
state.setType(Material.SPAWNER); | |
state.update(true); | |
CreatureSpawner data = (CreatureSpawner) block.getState(); | |
data.setRequiredPlayerRange(0); |