Skip to content

Instantly share code, notes, and snippets.

@Dinner1111
Dinner1111 / Aerobellum
Created July 26, 2013 23:11
Removed all efficiency enchantments from bows and updated their version.
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Aerobellum</name>
<version>1.0.1-alpha</version>
<objective>Destroy the obsidian from the enemy team's main engine.</objective>
<authors>
<author>Stealth5061</author>
</authors>
<rules>
<rule>Do not target the mapmaker :(</rule>
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Utopia</name>
<version>1.0.0</version>
<objective>Capture the enemy's two wools before they do the same to yours.</objective>
<authors>
<author>KronicSE</author>
<author>thestrangeboy1</author>
</authors>
<contributors>
package io.github.Dinner1111.Rainbows;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Color;
import org.bukkit.FireworkEffect;
import org.bukkit.Material;
import org.bukkit.FireworkEffect.Type;
import org.bukkit.entity.EntityType;
package io.github.Dinner1111.Boomer;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.FireworkEffect;
import org.bukkit.FireworkEffect.Type;
import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Firework;
import org.bukkit.inventory.meta.FireworkMeta;
name: Boomer
main: io.github.Dinner1111.Boomer.Boomer
version: 1.2.0
commands:
boom:
description: Destroy any player with a bang.
usage: /boom [player]
permission: Boomer.boom
permission-message: Sorry, you don't have permission to decimate players.
@EventHandler
public void onPlayerInteract(PlayerInteractEvent e) {
if (p.getItemInHand().getType() == Material.FIREWORK_CHARGE && (e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction().equals(Action.RIGHT_CLICK_BLOCK))) {
p.getWorld().dropItemNaturally(p.getLocation(), new ItemStack(Material.FIREWORK_CHARGE));
p.sendMessage("it worked :D");
}
}
package io.github.Dinner1111.KittyCannon;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.command.*;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Ocelot;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Midnight Train</name>
<version>1.2.4</version>
<objective>Break both of the enemy team's obsidian monuments</objective>
<authors>
<author>Aceman1998</author>
<author>Supadude565</author>
<author>Azinthu</author>
</authors>
<?xml version="1.0"?>
<map proto="1.3.0">
<name>Catalyst - PTW</name>
<version>1.0</version>
<objective>Obtain the Gray Wool and place it in the other team's core.</objective>
<authors>
<author contribution="Map Design and XML">kalikakitty</author>
</authors>
<contributors>
<contributor contribution="Pathway Design">moo88888888</contributor>
if (cmd.getName().equalsIgnoreCase("util-mute")) {
if (sender.hasPermission("Utils.Util.Mute")) {
if (args.length == 0) {
if (!muted) {
for (Player p : Bukkit.getOnlinePlayers()) {
if (p.isOp() == true) {
p.sendMessage(ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "ServerUtils" + ChatColor.DARK_GRAY + "]" + ChatColor.AQUA + " " + sender.getName() + ChatColor.GRAY + " has " + ChatColor.GOLD + "muted " + ChatColor.GRAY + "all online players.");
} else {
p.sendMessage(ChatColor.DARK_GRAY + "[" + ChatColor.DARK_RED + "ServerUtils" + ChatColor.DARK_GRAY + "]" + ChatColor.AQUA + " " + sender.getName() + ChatColor.GRAY + " has muted you.");
}