Changed everything to BSkyBlock

This commit is contained in:
tastybento 2017-05-20 14:52:52 -07:00
parent 7ea88aa0e0
commit 4be12da452
44 changed files with 148 additions and 148 deletions

View File

@ -2,13 +2,13 @@ BSkyBlock
========== ==========
[![Build Status](https://travis-ci.org/tastybento/bskyblock.svg?branch=master)](https://travis-ci.org/tastybento/bskyblock) [![Build Status](https://travis-ci.org/tastybento/bskyblock.svg?branch=master)](https://travis-ci.org/tastybento/bskyblock)
A Skyblock Bukkit plugin for Minecraft derived from ASkyBlock! A Skyblock Bukkit plugin for Minecraft derived from BSkyBlock!
This is a survival game where the player starts with an island in the sky. This is a survival game where the player starts with an island in the sky.
Bugs and Feature requests Bugs and Feature requests
========================= =========================
File bug and feature requests here: https://github.com/tastybento/ASkyBlock-Bugs-N-Features/issues File bug and feature requests here: https://github.com/tastybento/BSkyBlock-Bugs-N-Features/issues
Note for developers Note for developers

View File

@ -1,5 +1,5 @@
name: ASkyBlock name: BSkyBlock
main: us.tastybento.askyblock.ASkyBlock main: us.tastybento.askyblock.BSkyBlock
version: ${version} version: ${version}
authors: [Tastybento, Poslovitch] authors: [Tastybento, Poslovitch]

View File

@ -6,7 +6,7 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.0.1</version> <version>0.0.1</version>
<name>BSkyBlock</name> <name>BSkyBlock</name>
<description>The next generation of ASkyBlock</description> <description>The next generation of BSkyBlock</description>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
@ -54,8 +54,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.5</version> <version>3.5</version>
<configuration> <configuration>
<source>1.7</source> <source>1.8</source>
<target>1.7</target> <target>1.8</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock; package us.tastybento.bskyblock;
import java.util.HashMap; import java.util.HashMap;
import java.util.UUID; import java.util.UUID;
@ -7,21 +7,21 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import us.tastybento.askyblock.config.ASBLocale; import us.tastybento.bskyblock.config.ASBLocale;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
import us.tastybento.askyblock.database.ASBDatabase; import us.tastybento.bskyblock.database.ASBDatabase;
import us.tastybento.askyblock.database.IslandsManager; import us.tastybento.bskyblock.database.IslandsManager;
import us.tastybento.askyblock.database.OfflineHistoryMessages; import us.tastybento.bskyblock.database.OfflineHistoryMessages;
import us.tastybento.askyblock.database.PlayersManager; import us.tastybento.bskyblock.database.PlayersManager;
import us.tastybento.askyblock.util.VaultHelper; import us.tastybento.bskyblock.util.VaultHelper;
/** /**
* Main ASkyBlock class - provides an island minigame in the sky * Main BSkyBlock class - provides an island minigame in the sky
* @author Tastybento * @author Tastybento
* @author Poslovitch * @author Poslovitch
*/ */
public class ASkyBlock extends JavaPlugin{ public class BSkyBlock extends JavaPlugin{
private static ASkyBlock plugin; private static BSkyBlock plugin;
private HashMap<String, ASBLocale> locales = new HashMap<String, ASBLocale>(); private HashMap<String, ASBLocale> locales = new HashMap<String, ASBLocale>();
@ -122,10 +122,10 @@ public class ASkyBlock extends JavaPlugin{
} }
/** /**
* Returns ASkyBlock object instance * Returns BSkyBlock object instance
* @return ASkyBlock instance * @return BSkyBlock instance
*/ */
public static ASkyBlock getInstance(){ public static BSkyBlock getInstance(){
return plugin; return plugin;
} }

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock; package us.tastybento.bskyblock;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.api.events.acid; package us.tastybento.bskyblock.api.events.acid;
import org.bukkit.entity.Entity; import org.bukkit.entity.Entity;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* Fired when an entity (player and items excluded) receives damage from acid * Fired when an entity (player and items excluded) receives damage from acid

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.api.events.acid; package us.tastybento.bskyblock.api.events.acid;
import org.bukkit.entity.Item; import org.bukkit.entity.Item;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* Fired when an item (on the ground) gets destroyed by acid * Fired when an item (on the ground) gets destroyed by acid

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.api.events.acid; package us.tastybento.bskyblock.api.events.acid;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
@ -6,7 +6,7 @@ import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* Fired when an ItemStack (water bottle or bucket) is filled with acid * Fired when an ItemStack (water bottle or bucket) is filled with acid

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.api.events.acid; package us.tastybento.bskyblock.api.events.acid;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* Fired when a player receives damage from acid * Fired when a player receives damage from acid

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.api.events.acid; package us.tastybento.bskyblock.api.events.acid;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* Fired when a player drinks acid and... DIES * Fired when a player drinks acid and... DIES

View File

@ -1,10 +1,10 @@
package us.tastybento.askyblock.api.events.island; package us.tastybento.bskyblock.api.events.island;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* This event is fired when an island is going to be locked. * This event is fired when an island is going to be locked.

View File

@ -1,10 +1,10 @@
package us.tastybento.askyblock.api.events.island; package us.tastybento.bskyblock.api.events.island;
import org.bukkit.event.Cancellable; import org.bukkit.event.Cancellable;
import org.bukkit.event.Event; import org.bukkit.event.Event;
import org.bukkit.event.HandlerList; import org.bukkit.event.HandlerList;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
/** /**
* This event is fired when an island is going to be unlocked. * This event is fired when an island is going to be unlocked.

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.commands; package us.tastybento.bskyblock.commands;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -12,8 +12,8 @@ import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter; import org.bukkit.command.TabCompleter;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.util.Util; import us.tastybento.bskyblock.util.Util;
/** /**
* Abstract class that handles commands and tabs. It makes the commands code modular * Abstract class that handles commands and tabs. It makes the commands code modular
@ -24,7 +24,7 @@ import us.tastybento.askyblock.util.Util;
public abstract class ASBCommand implements CommandExecutor, TabCompleter{ public abstract class ASBCommand implements CommandExecutor, TabCompleter{
private Map<String, CommandArgumentHandler> arguments; private Map<String, CommandArgumentHandler> arguments;
protected ASBCommand(ASkyBlock plugin){ protected ASBCommand(BSkyBlock plugin){
arguments = new HashMap<String, CommandArgumentHandler>(); arguments = new HashMap<String, CommandArgumentHandler>();
// Automatically register the help argument // Automatically register the help argument

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.commands; package us.tastybento.bskyblock.commands;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
public class AdminCommand extends ASBCommand{ public class AdminCommand extends ASBCommand{
public AdminCommand(ASkyBlock plugin) { public AdminCommand(BSkyBlock plugin) {
super(plugin); super(plugin);
// TODO Auto-generated constructor stub // TODO Auto-generated constructor stub
} }

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.commands; package us.tastybento.bskyblock.commands;
import java.util.List; import java.util.List;
@ -6,11 +6,11 @@ import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
import us.tastybento.askyblock.util.Util; import us.tastybento.bskyblock.util.Util;
import us.tastybento.askyblock.util.VaultHelper; import us.tastybento.bskyblock.util.VaultHelper;
/** /**
* "/island" command * "/island" command
@ -19,9 +19,9 @@ import us.tastybento.askyblock.util.VaultHelper;
* @author Poslovitch * @author Poslovitch
*/ */
public class IslandCommand extends ASBCommand{ public class IslandCommand extends ASBCommand{
private ASkyBlock plugin; private BSkyBlock plugin;
public IslandCommand(ASkyBlock plugin) { public IslandCommand(BSkyBlock plugin) {
super(plugin); super(plugin);
this.plugin = plugin; this.plugin = plugin;
} }

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.commands; package us.tastybento.bskyblock.commands;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.util.Util; import us.tastybento.bskyblock.util.Util;
/** /**
* This class runs when the config file is not set up enough, or is unsafe. * This class runs when the config file is not set up enough, or is unsafe.
@ -20,7 +20,7 @@ public class NotSetup implements CommandExecutor{
DISTANCE, GENERATOR, WORLD_NAME, OUTDATED; DISTANCE, GENERATOR, WORLD_NAME, OUTDATED;
} }
private ASkyBlock plugin; private BSkyBlock plugin;
private Reason reason; private Reason reason;
/** /**
@ -28,7 +28,7 @@ public class NotSetup implements CommandExecutor{
* *
* @param reason * @param reason
*/ */
public NotSetup(ASkyBlock plugin, Reason reason){ public NotSetup(BSkyBlock plugin, Reason reason){
this.reason = reason; this.reason = reason;
} }

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.config; package us.tastybento.bskyblock.config;
import java.io.File; import java.io.File;
import java.util.Locale; import java.util.Locale;
@ -7,7 +7,7 @@ import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
/** /**
* Contains all the texts sent to players * Contains all the texts sent to players
@ -17,7 +17,7 @@ import us.tastybento.askyblock.ASkyBlock;
*/ */
public class ASBLocale { public class ASBLocale {
private ASkyBlock plugin; private BSkyBlock plugin;
private String localeID; private String localeID;
private FileConfiguration locale = null; private FileConfiguration locale = null;
@ -29,7 +29,7 @@ public class ASBLocale {
* @param plugin * @param plugin
* @param localeName - name of the yaml file that will be used * @param localeName - name of the yaml file that will be used
*/ */
public ASBLocale(ASkyBlock plugin, String localeID){ public ASBLocale(BSkyBlock plugin, String localeID){
this.plugin = plugin; this.plugin = plugin;
this.localeID = localeID; this.localeID = localeID;
getLocale(localeID); getLocale(localeID);

View File

@ -0,0 +1,5 @@
package us.tastybento.bskyblock.config;
public class PluginConfig {
}

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.config; package us.tastybento.bskyblock.config;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import us.tastybento.askyblock.database.ASBDatabase.DatabaseType; import us.tastybento.bskyblock.database.ASBDatabase.DatabaseType;
import us.tastybento.askyblock.database.OfflineHistoryMessages.HistoryMessageType; import us.tastybento.bskyblock.database.OfflineHistoryMessages.HistoryMessageType;
import us.tastybento.askyblock.database.objects.Island.SettingsFlag; import us.tastybento.bskyblock.database.objects.Island.SettingsFlag;
/** /**
* All the plugin settings are here * All the plugin settings are here

View File

@ -1,15 +1,15 @@
package us.tastybento.askyblock.database; package us.tastybento.bskyblock.database;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
import us.tastybento.askyblock.database.flatfile.FlatFileDatabase; import us.tastybento.bskyblock.database.flatfile.FlatFileDatabase;
import us.tastybento.askyblock.database.mysql.MySQLDatabase; import us.tastybento.bskyblock.database.mysql.MySQLDatabase;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
import us.tastybento.askyblock.database.objects.Player; import us.tastybento.bskyblock.database.objects.Player;
import us.tastybento.askyblock.database.sqlite.SQLiteDatabase; import us.tastybento.bskyblock.database.sqlite.SQLiteDatabase;
public abstract class ASBDatabase { public abstract class ASBDatabase {

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.database; package us.tastybento.bskyblock.database;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map.Entry; import java.util.Map.Entry;
@ -6,12 +6,12 @@ import java.util.UUID;
import org.bukkit.Location; import org.bukkit.Location;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
public class IslandsManager { public class IslandsManager {
private ASkyBlock plugin; private BSkyBlock plugin;
private ASBDatabase database; private ASBDatabase database;
private HashMap<Location, Island> islands; private HashMap<Location, Island> islands;
@ -20,7 +20,7 @@ public class IslandsManager {
// Metrics data // Metrics data
private int metrics_createdcount = 0; private int metrics_createdcount = 0;
public IslandsManager(ASkyBlock plugin){ public IslandsManager(BSkyBlock plugin){
this.plugin = plugin; this.plugin = plugin;
database = ASBDatabase.getDatabase(); database = ASBDatabase.getDatabase();
islands = new HashMap<Location, Island>(); islands = new HashMap<Location, Island>();

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.database; package us.tastybento.bskyblock.database;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -8,8 +8,8 @@ import java.util.UUID;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
/** /**
* Handles offline messaging to players and teams * Handles offline messaging to players and teams
@ -17,13 +17,13 @@ import us.tastybento.askyblock.config.Settings;
* @author Tastybento * @author Tastybento
*/ */
public class OfflineHistoryMessages { public class OfflineHistoryMessages {
private ASkyBlock plugin; private BSkyBlock plugin;
private ASBDatabase database; private ASBDatabase database;
// Offline Messages // Offline Messages
private HashMap<UUID, List<String>> messages; private HashMap<UUID, List<String>> messages;
public OfflineHistoryMessages(ASkyBlock plugin){ public OfflineHistoryMessages(BSkyBlock plugin){
this.plugin = plugin; this.plugin = plugin;
database = ASBDatabase.getDatabase(); database = ASBDatabase.getDatabase();
messages = new HashMap<UUID, List<String>>(); messages = new HashMap<UUID, List<String>>();

View File

@ -1,20 +1,20 @@
package us.tastybento.askyblock.database; package us.tastybento.bskyblock.database;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.UUID; import java.util.UUID;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.database.objects.Player; import us.tastybento.bskyblock.database.objects.Player;
public class PlayersManager{ public class PlayersManager{
private ASkyBlock plugin; private BSkyBlock plugin;
private ASBDatabase database; private ASBDatabase database;
private HashMap<UUID, Player> players; private HashMap<UUID, Player> players;
public PlayersManager(ASkyBlock plugin){ public PlayersManager(BSkyBlock plugin){
this.plugin = plugin; this.plugin = plugin;
database = ASBDatabase.getDatabase(); database = ASBDatabase.getDatabase();
players = new HashMap<UUID, Player>(); players = new HashMap<UUID, Player>();

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.database.flatfile; package us.tastybento.bskyblock.database.flatfile;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import us.tastybento.askyblock.database.ASBDatabase; import us.tastybento.bskyblock.database.ASBDatabase;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
import us.tastybento.askyblock.database.objects.Player; import us.tastybento.bskyblock.database.objects.Player;
public class FlatFileDatabase extends ASBDatabase{ public class FlatFileDatabase extends ASBDatabase{

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.database.mysql; package us.tastybento.bskyblock.database.mysql;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import us.tastybento.askyblock.database.ASBDatabase; import us.tastybento.bskyblock.database.ASBDatabase;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
import us.tastybento.askyblock.database.objects.Player; import us.tastybento.bskyblock.database.objects.Player;
public class MySQLDatabase extends ASBDatabase{ public class MySQLDatabase extends ASBDatabase{

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.database.objects; package us.tastybento.bskyblock.database.objects;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -6,10 +6,10 @@ import java.util.UUID;
import org.bukkit.Location; import org.bukkit.Location;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.api.events.island.IslandLockEvent; import us.tastybento.bskyblock.api.events.island.IslandLockEvent;
import us.tastybento.askyblock.api.events.island.IslandUnlockEvent; import us.tastybento.bskyblock.api.events.island.IslandUnlockEvent;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
/** /**
* Stores all the info about an island * Stores all the info about an island
@ -19,7 +19,7 @@ import us.tastybento.askyblock.config.Settings;
* @author Poslovitch * @author Poslovitch
*/ */
public class Island { public class Island {
private ASkyBlock plugin; private BSkyBlock plugin;
//// Island //// //// Island ////
// The center of the island itself // The center of the island itself
@ -56,7 +56,7 @@ public class Island {
//// Protection //// //// Protection ////
private HashMap<SettingsFlag, Boolean> flags = new HashMap<SettingsFlag, Boolean>(); private HashMap<SettingsFlag, Boolean> flags = new HashMap<SettingsFlag, Boolean>();
public Island(ASkyBlock plugin, int x, int z, UUID owner){ public Island(BSkyBlock plugin, int x, int z, UUID owner){
} }

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.database.objects; package us.tastybento.bskyblock.database.objects;
import java.util.HashMap; import java.util.HashMap;
import java.util.UUID; import java.util.UUID;
import org.bukkit.Location; import org.bukkit.Location;
import us.tastybento.askyblock.config.Settings; import us.tastybento.bskyblock.config.Settings;
/** /**
* Tracks info on the player, recognized by his UUID * Tracks info on the player, recognized by his UUID

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.database.sqlite; package us.tastybento.bskyblock.database.sqlite;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import us.tastybento.askyblock.database.ASBDatabase; import us.tastybento.bskyblock.database.ASBDatabase;
import us.tastybento.askyblock.database.objects.Island; import us.tastybento.bskyblock.database.objects.Island;
import us.tastybento.askyblock.database.objects.Player; import us.tastybento.bskyblock.database.objects.Player;
public class SQLiteDatabase extends ASBDatabase{ public class SQLiteDatabase extends ASBDatabase{

View File

@ -1,19 +1,19 @@
package us.tastybento.askyblock.util; package us.tastybento.bskyblock.util;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
/** /**
* @author Tastybento * @author Tastybento
* @author Poslovitch * @author Poslovitch
*/ */
public class FileLister{ public class FileLister{
private ASkyBlock plugin; private BSkyBlock plugin;
public FileLister(ASkyBlock plugin){ public FileLister(BSkyBlock plugin){
this.plugin = plugin; this.plugin = plugin;
} }

View File

@ -1,12 +1,12 @@
package us.tastybento.askyblock.util; package us.tastybento.bskyblock.util;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* A set of utility methods * A set of utility methods
@ -15,7 +15,7 @@ import us.tastybento.askyblock.util.nms.NMSAbstraction;
* @author Poslovitch * @author Poslovitch
*/ */
public class Util { public class Util {
private static ASkyBlock plugin = ASkyBlock.getInstance(); private static BSkyBlock plugin = BSkyBlock.getInstance();
public static void sendMessage(CommandSender sender, String message){ public static void sendMessage(CommandSender sender, String message){
if (!ChatColor.stripColor(message).trim().isEmpty()) { if (!ChatColor.stripColor(message).trim().isEmpty()) {

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.util; package us.tastybento.bskyblock.util;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
@ -6,7 +6,7 @@ import org.bukkit.plugin.RegisteredServiceProvider;
import net.milkbowl.vault.economy.Economy; import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.permission.Permission; import net.milkbowl.vault.permission.Permission;
import us.tastybento.askyblock.ASkyBlock; import us.tastybento.bskyblock.BSkyBlock;
/** /**
* Helper class for Vault Economy and Permissions * Helper class for Vault Economy and Permissions
@ -23,7 +23,7 @@ public class VaultHelper {
* *
* @return true if successful * @return true if successful
*/ */
public static boolean setupEconomy(ASkyBlock plugin) { public static boolean setupEconomy(BSkyBlock plugin) {
RegisteredServiceProvider<Economy> economyProvider = plugin.getServer().getServicesManager() RegisteredServiceProvider<Economy> economyProvider = plugin.getServer().getServicesManager()
.getRegistration(Economy.class); .getRegistration(Economy.class);
if (economyProvider != null) { if (economyProvider != null) {
@ -37,7 +37,7 @@ public class VaultHelper {
* *
* @return true if successful * @return true if successful
*/ */
public static boolean setupPermissions(ASkyBlock plugin) { public static boolean setupPermissions(BSkyBlock plugin) {
RegisteredServiceProvider<Permission> permissionProvider = plugin.getServer().getServicesManager() RegisteredServiceProvider<Permission> permissionProvider = plugin.getServer().getServicesManager()
.getRegistration(Permission.class); .getRegistration(Permission.class);
if (permissionProvider != null) { if (permissionProvider != null) {

View File

@ -1,4 +1,4 @@
package us.tastybento.askyblock.util.nms; package us.tastybento.bskyblock.util.nms;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;

View File

@ -1,11 +1,11 @@
package us.tastybento.askyblock.util.nms.fallback; package us.tastybento.bskyblock.util.nms.fallback;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* A fallback NMS Handler when the NMS version is not supported by ASkyBlock * A fallback NMS Handler when the NMS version is not supported by BSkyBlock
* *
* @author Tastybento * @author Tastybento
* @author Poslovitch * @author Poslovitch

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_10_R1; package us.tastybento.bskyblock.util.nms.v1_10_R1;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_10_R1 * NMS Handler for v1_10_R1

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_11_R1; package us.tastybento.bskyblock.util.nms.v1_11_R1;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_11_R1 * NMS Handler for v1_11_R1

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_12_R1; package us.tastybento.bskyblock.util.nms.v1_12_R1;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_12_R1 * NMS Handler for v1_12_R1

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_7_R3; package us.tastybento.bskyblock.util.nms.v1_7_R3;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_7_R3 * NMS Handler for v1_7_R3

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_7_R4; package us.tastybento.bskyblock.util.nms.v1_7_R4;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_7_R4 * NMS Handler for v1_7_R4

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_8_R1; package us.tastybento.bskyblock.util.nms.v1_8_R1;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_8_R1 * NMS Handler for v1_8_R1

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_8_R2; package us.tastybento.bskyblock.util.nms.v1_8_R2;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_8_R2 * NMS Handler for v1_8_R2

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_8_R3; package us.tastybento.bskyblock.util.nms.v1_8_R3;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_8_R3 * NMS Handler for v1_8_R3

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_9_R1; package us.tastybento.bskyblock.util.nms.v1_9_R1;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_9_R1 * NMS Handler for v1_9_R1

View File

@ -1,8 +1,8 @@
package us.tastybento.askyblock.util.nms.v1_9_R2; package us.tastybento.bskyblock.util.nms.v1_9_R2;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import us.tastybento.askyblock.util.nms.NMSAbstraction; import us.tastybento.bskyblock.util.nms.NMSAbstraction;
/** /**
* NMS Handler for v1_9_R2 * NMS Handler for v1_9_R2

View File

@ -1,5 +0,0 @@
package us.tastybento.askyblock.config;
public class PluginConfig {
}