Skip to content

Instantly share code, notes, and snippets.

View cFerg's full-sized avatar
💭
Wishing whoever reads this a blessed day. 🌞

Elite cFerg

💭
Wishing whoever reads this a blessed day. 🌞
View GitHub Profile
@cFerg
cFerg / Math.md
Last active June 22, 2022 00:22

Proportion of Sums Formula - cFerg


A = Consecutive Numbers

B = Sum of Numbers

A B
1 1
2 3
@cFerg
cFerg / Main.java
Last active March 1, 2016 07:57
GameMode Fly Checking
package elite.gm;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@cFerg
cFerg / ToyBox
Created September 7, 2014 03:02
ToyBox System (For a server I no longer play on) :P
#toybox for 2.0 - rendition by Elite
#box = Toybox inside the toybox
#n = not unlocked (requires certain supporter level or bought with tickets or bought in store)
#b = bought shop item
#u = not purchased shop item
#e = 1 (enabled) in use - or activated
#d = 0 (disabled) not in use - or deactivated
#g = given item - the item the player is able to use outside of the chest gui.
options:
@cFerg
cFerg / Par-Tay
Created December 30, 2014 22:00
Let's Party
/tellraw @a {text:"", extra:[{text: "(^-^) Let's Jam It Up (^-^)",color: dark_aqua, clickEvent: {action: open_url, value: "http://bit.ly/1rx1A78"}, hoverEvent: {action: show_text, value: {text: "Let's Party " ,color: aqua,extra:[{selector:%player%, color: aqua}]}}}]}
@cFerg
cFerg / index.html
Created February 17, 2015 19:31
emc checker
<script>
var totalcount = 0;
var totalstaff = '';
var ttar;
function showntell(target){
document.getElementById('pFeed10').style.display = "none";
document.getElementById('pFeed11').style.display = "none";
document.getElementById('pFeed12').style.display = "none";
document.getElementById('pFeed13').style.display = "none";
document.getElementById('pFeed20').style.display = "none";
@cFerg
cFerg / .htaccess
Last active February 26, 2016 08:35
Member Minimizer
Options +FollowSymlinks
RewriteEngine on
#List all users
RewriteRule ^get/([.*]{0,0})$ get/index.php?Member=E1 [NC]
#Invalid Username - too short
RewriteRule ^get/([A-Za-z0-9_]{1,2})$ get/index.php?Member=E2 [NC]
#Valid Username
Anon = peripheral.wrap("top")
Spek = peripheral.wrap("left")
while true do
e,player,message = os.pullEvent("chat")
print (player..": "..message)
if player =="WCG_Elite" then
if (message =="Open") or (message =="open") or (message =="On") or (message =="on") then
rs.setOutput("bottom",true)
@cFerg
cFerg / Eggify.java
Last active February 26, 2016 08:25
Eggification - Example (Need to add world checking | Permission checking | Plot checking)
/*
* This plugin and data files were written by Elite Creations.
* By use of this plugin, you hereby notice it has been initially written by the developers at Elite Creations.
* This plugin is for use only for server usage for Elite Creations.
*/
package elite.Worlds;
import java.util.HashMap;
import org.bukkit.ChatColor;
@cFerg
cFerg / GUIs.java
Last active February 26, 2016 08:24
GUI Example
/*
* This plugin and data files were written by Elite Creations.
* By use of this plugin, you hereby notice it has been initially written by the developers at Elite Creations.
* This plugin is for use only for server usage for Elite Creations.
*/
package Elite.GUI;
import java.util.ArrayList;
import org.bukkit.Bukkit;
Source Package
<default package>
main.java
plugin.yml
Dependencies (folder)
Java Dependencies (folder)
Project Files (folder)
pom.xml