Skip to content

Instantly share code, notes, and snippets.

View Phoenix616's full-sized avatar
πŸ”₯
πŸ‘€

Max Lee Phoenix616

πŸ”₯
πŸ‘€
View GitHub Profile
@Phoenix616
Phoenix616 / ConfigAccessor.java
Last active May 1, 2021 14:20 — forked from MrZoraman/ConfigAccessor.java
Utility to access yaml files in bukkit
/*
* Copyright (C) 2012
*
* 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:
*
@Phoenix616
Phoenix616 / TranslationMapping.java
Last active August 19, 2018 22:15
Translation mappings to be used with Bukkit's Material names and Minecrafts translation system, needs ConfigAccessor.java: https://gist.github.com/Phoenix616/a629223a89b60d710da457f5f7f57ecc
/*
* TranslationMapping is an util for mapping pre 1.13 Bukkit materials to
* the language keys of minecraft items in the language files of the client
*
* Licensed under the following (MIT) license:
*
* Copyright (C) 2018 Max Lee (https://github.com/Phoenix616)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@Phoenix616
Phoenix616 / LingeringPotionPvpFix.java
Last active May 4, 2016 21:22
Fix the usage of lingering potions in PvP with WG6
import com.sk89q.worldguard.LocalPlayer;
import com.sk89q.worldguard.bukkit.RegionContainer;
import com.sk89q.worldguard.bukkit.RegionQuery;
import com.sk89q.worldguard.bukkit.WGBukkit;
import com.sk89q.worldguard.bukkit.util.Materials;
import com.sk89q.worldguard.protection.flags.DefaultFlag;
import com.sk89q.worldguard.protection.flags.StateFlag;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
@Phoenix616
Phoenix616 / proxy_screen_away.pl
Created March 13, 2016 19:51
Irssi script to automatic set (un)away status to react on wether or not a screen is attached and a proxy is connected, fork of screen_away.pl by ads
use Irssi;
use strict;
use FileHandle;
use vars qw($VERSION %IRSSI);
$VERSION = "0.9.8.1 - 1.0";
%IRSSI = (
authors => 'Phoenix616 <[email protected]>, Andreas \'ads\' Scherbaum <[email protected]>',
name => 'proxy_and_screen_away',
@Phoenix616
Phoenix616 / ParticleClicks.java
Last active May 24, 2018 15:03
Click on particles...
HashMap<UUID,Location> stands = new HashMap<UUID, Location>();
double particleHeight = 1.5;
public void onEnable() {
getServer().getPluginManager().registerEvents(this, this);
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
@Override
public void run() {