Skip to content

Instantly share code, notes, and snippets.

View heinrichquirit's full-sized avatar
🎯
Focusing

Henny heinrichquirit

🎯
Focusing
  • Melbourne, Australia
View GitHub Profile
<component name="ArtifactManager">
<artifact type="jar" name="SupportTickets">
<output-path>$USER_HOME$/Desktop/Spigot/Server/plugins</output-path>
<root id="archive" name="SupportTickets.jar">
<element id="module-output" name="SupportTickets" />
</root>
</artifact>
</component>
hidden-commands:
- '/bukkit:help'
- '/icanhasbukkit'
- '/?'
- '/bukkit:'
- '/plugins'
- '/bukkit:plugins'
- '/pl'
- '/bukkit:pl'
@heinrichquirit
heinrichquirit / config.yml
Created January 11, 2017 12:30
Spigot Plugin
# Strictly follow this format -- CASE SENSITIVE
#nameofsign:
# rank-name: Operator
# rank-price: 100
trustedsign:
rank-name: Trusted
rank-price: 50
membersign:
rank-name: Member
rank-price: 20
@heinrichquirit
heinrichquirit / NoSpambots
Created January 4, 2015 13:38
NoSpambots Bukkit plugin
package main.java.net.bigbadcraft.nospambots;
import java.util.HashMap;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
@heinrichquirit
heinrichquirit / NoSpambots
Created January 4, 2015 13:38
NoSpambots Bukkit plugin
package main.java.net.bigbadcraft.nospambots;
import java.util.HashMap;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
# How much vote points to receive per vote
vote-point-reward: 1
gui-menu-name: 'DKCraft Store'
# Must be multiple of 9, max size 36
gui-menu-size: 9
# Format: <quantity>:<itemname>:<price>
store:
- 1:sponge:1
- 2:stone:5
- 5:apple:1
public class ClassDriver {
public static void main(String[] args) {
Superhero superman = new Superhero();
superman.setSuperPower("Strength");
superman.setComicBook("Marvel");
superman.setCanFly(true);
System.out.println("Hero's power: " + superman.getSuperPower());
worlds:
world:
x: 0
y: 0
z: 0
yaw: 0
pitch: 0
world_nether:
x: 0
y: 0
package main.java.net.bigbadcraft.census;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
package main.java.net.bigbadcraft.votelogger;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import java.util.TreeMap;