Skip to content

Instantly share code, notes, and snippets.

View Techcable's full-sized avatar
🇺🇸
Procrastinating

Techcable

🇺🇸
Procrastinating
View GitHub Profile
@Techcable
Techcable / Combat Tag Reloaded.md
Last active August 29, 2015 14:10
Combat Tag Reloaded Description

#Combat Tag Reloaded Do you hate it when you are winning a fight and your opponent logs out, or when someone runs in to a safezone? Then use Combat Tag Reloaded, a plugin that stops PvP logging and entering a safezone in combat.

##Features

  • Marks someone in combat if they are fighting and unmarks them when they aren't
  • Applies a punishment if someone logs off in combat to discourage combat-logging
    • Spawn an npc with armor to take the player's place until they log on again
    • Instantly Kill them when they log off
  • Prevents you from entering a worldedit no-pvp region when in combat to prevent safezoning
@Techcable
Techcable / Combat Tag FAQ.md
Created November 22, 2014 04:28
Combat Tag FAQ

#Frequently Asked Questions

#!/bin/bash
# /etc/init.d/bungeecord
### BEGIN INIT INFO
# Provides: bungeecord
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
@Techcable
Techcable / CombatAPI.java
Last active August 29, 2015 14:13
A combat tag API supporting CombatTag, CombatTagReloaded, and PvPManager
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import com.trc202.CombatTag.CombatTag;
import com.trc202.CombatTagApi.CombatTagApi;
import me.NoChance.PvPManager.PvPManager;
import me.NoChance.PvPManager.Config.Variables;
import me.NoChance.PvPManager.Managers.PlayerHandler;
@Techcable
Techcable / ProfileUtils.java
Last active August 29, 2015 14:14
UUID and Name fetcher with cache
/**
* The MIT License (MIT)
*
* Copyright (c) 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
@Techcable
Techcable / UUIDFetcher.java
Last active August 29, 2015 14:14
A UUIDFetcher for techcable's uuid service with caching
import java.lang.ref.SoftReference;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
/**
@Techcable
Techcable / Title.java
Last active August 29, 2015 14:15
1.8 Title API Requires my Reflection Utils
/**
* The MIT License
* Copyright (c) 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:
@Techcable
Techcable / ConcurrentHashMap.java
Last active August 29, 2015 14:17
Version 1.96 of ConcurrentHashMap
/*
* Written by Doug Lea with assistance from members of JCP JSR-166
* Expert Group and released to the public domain, as explained at
* http://creativecommons.org/licenses/publicdomain
*/
package java.util.concurrent;
import java.util.concurrent.locks.*;
import java.util.*;
import java.io.Serializable;
@Techcable
Techcable / ActionBar.java
Last active August 29, 2015 14:17
ActionBarUtils (Requires My Reflection Class)
/*
* The MIT License
* Copyright (c) 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:
@Techcable
Techcable / Reflection.java
Last active August 29, 2015 14:17
Reflection Utilities for Minecraft
/*
* The MIT License
* Copyright (c) 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: