Skip to content

Instantly share code, notes, and snippets.

💭
Wishing whoever reads this a blessed day. 🌞

Elite cFerg

💭
Wishing whoever reads this a blessed day. 🌞
Block or report user

Report or block cFerg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cFerg
cFerg / Main.java
Last active Mar 1, 2016
GameMode Fly Checking
View Main.java
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;
View ChatAPI.java
package elite;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
public class ChatAPI extends JavaPlugin{
@cFerg
cFerg / NotifyAPI.java
Last active Feb 26, 2016
Ping Notification
View NotifyAPI.java
package elite;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
@cFerg
cFerg / Messages.java
Created Jan 9, 2016
Message Examples
View Messages.java
package your.path;
import java.util.List;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
public class Messages {
//Broadcast a message to the entire server
View gui.java
package elite.mini;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.UUID;
import org.apache.commons.codec.binary.Base64;
import org.bukkit.Bukkit;
View FileHierarchy.txt
Source Package
<default package>
main.java
plugin.yml
Dependencies (folder)
Java Dependencies (folder)
Project Files (folder)
pom.xml
@cFerg
cFerg / Sum.html
Created Dec 28, 2015
Sum of Range Systems
View Sum.html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="Sum.js"></script>
</head>
<body>
<table>
<tr>
<th>Minimum Number</th>
View MathTimings.md

For Loop Sum Counter

public void sumCheck1(int a){
  if (a > 0){
    int b = 0;
    for (int i = 0; i <= a; i++){
      b = b + i;
    }
    print(b);
  }else if (a < 0){
View ItemStack.md

Material | Quantity | Byte/Short

ItemStack inkSack = new ItemStack(Material.INK_SACK);

ItemStack greenDye = new ItemStack(Material.INK_SACK, 1, (short) 10);

ItemStack redWool = new ItemStack(Material.WOOL, 1, (byte) 14);
View PlayerAntiMerge.java
import java.util.List;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerPickupItemEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
/**
* Lead Developers:
You can’t perform that action at this time.