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;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
@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 / OfflinePlayerLoader.java
Last active November 6, 2018 01:34
Load offline players (should work with versions later than 1.6.4) (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 / 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 / License.md
Last active September 27, 2015 02:00
Techcable's Plugin License

Copyright (c) 2015 Nicholas Schlabach

If there is conflict between two versions of this license, the version found on gtihub will take precedence.

Permission is granted to operate this program provided that:

  • You have purchased this plugin from Nicholas Schlabach (Techcable)
  • or Techcable has given you his express permission to operate/run this program
  • or Techcable has released this software publicly on either dev.bukkit.org, spigotmc.org or another software hosting site
  • You do not modify this software in any way
  • You do not redistrubute this software to anyone else