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
apply plugin: 'java' | |
compileJava { | |
} | |
jar { | |
manifest { | |
attributes('Main-class': '') | |
} |
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 net.minecraft.src; | |
import net.minecraft.server.DedicatedServer; | |
public final class ThreadDedicatedServer extends Thread { | |
final DedicatedServer field_96244_a; | |
public ThreadDedicatedServer(DedicatedServer par1DedicatedServer) { | |
this.field_96244_a = par1DedicatedServer; | |
} |
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
18<samrg472> my ip is probably in your history | |
18<samrg472> from being on it before | |
18<TheMike> samrg472 Username and password? | |
20<kaendfinger>30 Probably | |
18<samrg472> one sec | |
18<samrg472> I'm going to put that in topic | |
18<samrg472> soon | |
18<samrg472> :P | |
20<kaendfinger>30 IC2 has boats O.o | |
20<kaendfinger>30 xD |
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
### This is the Minetweak main configuration file ### | |
# Allows for Whitelisted players to be oped on join | |
player.autoOp: | |
# Sets the disconnect message to be displayed to users when the server is stopping | |
server.stop.message: | |
# Log Level for Minetweak: Values: INFO/DEBUG/FINE/SEVERE/WARNING | |
minetweak.log.level: INFO |
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
apply plugin: 'java' | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
compile 'org.minetweak:Minetweak:0.6.5' | |
} |
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
{ | |
"name": "TestPlugin", | |
"main": "org.minetweak.test.TestPlugin", | |
"description": "A Minetweak Plugin to test loading and other MT functions.", | |
"subPlugins": [ | |
{ | |
"name": "NoCreeping", | |
"main": "org.minetweak.plugins.creeping.NoCreeping" | |
} | |
], |
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 org.minetweak.world; | |
import net.minecraft.server.MinecraftServer; | |
import net.minecraft.world.*; | |
import net.minecraft.world.storage.ISaveHandler; | |
import org.minetweak.Minetweak; | |
import java.util.ArrayList; | |
public class MultiWorldManager { |
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
def mainDirectory = new File(getClass().protectionDomain.codeSource.location.path).getParentFile().getParentFile() | |
def sourceDirectory = new File(mainDirectory, 'src/main/java/org/minetweak') | |
println('Found Source Directory: ' + sourceDirectory.toString()) | |
int classCount = 0 | |
sourceDirectory.eachFileRecurse { | |
if (it.getName().endsWith(".java")) { | |
classCount++ | |
} | |
} |
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
if (!args.size()==1) {println('Usage: updateVersion.groovy New.Version') ; return} | |
def mainDir = new File(getClass().protectionDomain.codeSource.location.path).getParentFile().getParentFile() | |
def newVersion = args[0] | |
def gradleScript = new File(mainDir, 'build.gradle') | |
def input = gradleScript.newReader() | |
def tmpFile = new File('build.gradle.tmp') | |
def output = new FileWriter(tmpFile) | |
input.eachLine { | |
if (it.startsWith('def version')) { |
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
if (!args.size()==1) {println('Usage: updateVersion.groovy New.Version') ; return} | |
def mainDir = new File(getClass().protectionDomain.codeSource.location.path).parentFile.parentFile | |
def gradleScript = new File(mainDir, 'build.gradle') | |
def tmpFile = new File('build.gradle.tmp') | |
gradleScript.each { | |
if (it.startsWith('def version')) { | |
println 'Found Version: ' + evaluate(it) | |
it = 'def version = \'' + args[0] + '\'' | |
} |