(click that thing up there)
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
/* | |
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft | |
* | |
* MIT License: | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the | |
* Software, and to permit persons to whom the Software is furnished to do so, |
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 com.empireminecraft; | |
import net.md_5.bungee.ServerConnection; | |
import net.md_5.bungee.UserConnection; | |
import net.md_5.bungee.api.ProxyServer; | |
import net.md_5.bungee.api.ServerPing; | |
import net.md_5.bungee.api.connection.ProxiedPlayer; | |
import net.md_5.bungee.api.event.ProxyPingEvent; | |
import net.md_5.bungee.api.event.ServerConnectEvent; | |
import net.md_5.bungee.api.event.ServerConnectedEvent; |
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
/** | |
** ____ _ ___ ___ _ _ | |
** | _ \ | | | \/ | | | (_) | |
** | | \ |__ _ _ __| | __ | . . | ___ _ __ ___ | | __ __ _ _ | |
** | | | | _` | '__| |/ / | |\/| |/ _ \| '_ \ / _ \| |/ // _` | | | |
** | |_/ /(_| | | | < | | | | (_) | | | | (_) | <| (_| | | | |
** |____/\__,_|_| |_|\_\ \_| |_/\___/|_| |_|\___/|_|\_\\__,_|_| | |
** | |
** Quassel Theme | |
** |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN"> | |
<Appenders> | |
<Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console> | |
<TerminalConsole name="TerminalConsole"> | |
<PatternLayout pattern="%highlightError{%d{yyyy-MM-dd HH:mm:ss} [%t/%level] %minecraftFormatting{%msg}%n%xEx}" /> | |
</TerminalConsole> | |
<RandomAccessFile name="File" fileName="server.log" append="true"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%t/%level] %minecraftFormatting{%msg}{strip}%n" /> | |
</RandomAccessFile> |
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
public static void setDamage(EntityDamageEvent event, double dmg) { | |
if (event.getFinalDamage() == 0) { | |
if (dmg != 0) { | |
event.setDamage(dmg); | |
} | |
return; | |
} | |
final double ratio = dmg / event.getFinalDamage(); | |
for (DamageModifier mod : DamageModifier.values()) { | |
if (event.isApplicable(mod)) { |
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
/** | |
* The MIT License | |
* Copyright (c) 2014-2015 Techcable | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: |
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
import mysql.connector | |
import os, sys | |
from datetime import datetime | |
import time | |
path = "GriefPreventionData"+time.strftime("%Y%m%d-%H%M%S") | |
try: | |
os.mkdir(path) | |
os.mkdir(path+"/PlayerData") |