This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.herocraftonline.heroes.characters.skill.skills; | |
import java.util.HashSet; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Material; | |
import org.bukkit.block.Block; | |
import org.bukkit.configuration.ConfigurationSection; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.EventPriority; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<dzcpmods> | |
<mod name="myModID1"> | |
<author>myName</author> | |
<version>version</version> | |
<downloadurl>http://test/test1.zip</downloadurl> | |
</mod> | |
<mod name="myModID2"> | |
<author>myName</author> | |
<version>version</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin: | |
debug: false | |
overwriteAllNpcDamageListener: false | |
# some plugins, like AuthMe protects the NPC | |
# if your NPC take no damage set these value to true | |
# WARNING: everybody can kill the NPC if these value is true | |
printMessages: true | |
# options: notify,automaticDownload,off | |
autoupdate: notify | |
npc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
import java.util.ArrayList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@EventHandler | |
public void inventoryClickEvent(InventoryClickEvent event) { | |
if (!(event.getInventory() instanceof AnvilInventory)) { | |
return; | |
} | |
if (event.getSlotType() != SlotType.RESULT) { | |
return; | |
} | |
if (event.getCurrentItem().getItemMeta().getDisplayName() | |
.contains("Hero Sword")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.idragonfire.dragonchestui; | |
import java.util.Arrays; | |
import org.bukkit.Bukkit; | |
import org.bukkit.ChatColor; | |
import org.bukkit.DyeColor; | |
import org.bukkit.Material; | |
import org.bukkit.entity.Player; | |
import org.bukkit.event.EventHandler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.util.HashSet; | |
import java.util.Set; | |
import org.bukkit.configuration.ConfigurationSection; | |
import org.bukkit.configuration.file.YamlConfiguration; | |
public class BukkitStore { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void debug(CommandContext args, CommandSender sender) throws CommandException { | |
try { | |
Player creator = (Player) sender; | |
WorldEditPlugin worldEdit = (WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit"); | |
LocalSession session = worldEdit.getSession(creator); | |
Region region = session.getSelection(session.getSelectionWorld()); | |
BukkitPlayer wgPlayer = new BukkitPlayer(worldEdit, worldEdit.getServerInterface(), creator); | |
Extent editSession = wgPlayer.getExtent(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. fetch oder pull damit man alles aktuell hat | |
2. checkout origin "develop" to local develop | |
3. rebase local "master" to upstream local "develop" | |
4. checkout "master" | |
5. merge local "develop" into local "master" | |
6. push "master" as "develop" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Represents a thing in the game world | |
interface GameObject { | |
int getID(); | |
} | |
// Store data | |
public abstract class Component extends GameObject { | |
private static Class<? extends Component>[] idArray = new Class<? extends Component>[10]; | |
@Override |
OlderNewer