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 String findMatch(String arg, List<String> words, boolean ignoreRepeat) { | |
// Where the final word will be stored. | |
String word = null; | |
/* | |
* Sometimes two words will equally match (rarely). If we find one that matches, we | |
* increase this by one. Just in case the person wants it to return null, we have the | |
* ignoreRepeat. | |
*/ | |
int repeated = 0; |
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 me.ultimate.OWK; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.ChatColor; | |
import org.bukkit.event.EventHandler; | |
import org.bukkit.event.Listener; | |
import org.bukkit.event.player.PlayerChangedWorldEvent; | |
import org.bukkit.event.player.PlayerQuitEvent; |
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
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 me.ultimate.Arena; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Material; | |
import org.bukkit.entity.Player; | |
import org.bukkit.inventory.ItemStack; |
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
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 me.ultimate.Arena; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.bukkit.entity.Player; | |
public class ArenaManager { | |
// An list to hold all of the arenas |
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 me.ultimate.Arena; | |
import org.bukkit.Bukkit; | |
import org.bukkit.Location; | |
import org.bukkit.World; | |
public class LocationUtils { | |
public static String fromLocation(Location l, boolean block, boolean yp) { | |
String world = l.getWorld().getName(); |
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
import org.bukkit.plugin.java.JavaPlugin; | |
public class ArenaTutorial extends JavaPlugin { | |
@Override | |
public void onEnable() { | |
// Loop through all of our arenas when the plugin starts |
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 me.ultimate.Arena; | |
import org.bukkit.Location; | |
import org.bukkit.configuration.file.FileConfiguration; | |
public class Arena { | |
private String name; // A spot to store our arena's name | |
private Location l1, l2; // Our two corners | |
private Location spawn, stop; // Where we start and stop |
OlderNewer