mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-25 12:15:12 +01:00
Changed everything to BSkyBlock
This commit is contained in:
parent
7ea88aa0e0
commit
4be12da452
@ -2,13 +2,13 @@ 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.
|
||||
|
||||
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: ASkyBlock
|
||||
main: us.tastybento.askyblock.ASkyBlock
|
||||
name: BSkyBlock
|
||||
main: us.tastybento.askyblock.BSkyBlock
|
||||
version: ${version}
|
||||
|
||||
authors: [Tastybento, Poslovitch]
|
||||
|
6
pom.xml
6
pom.xml
@ -6,7 +6,7 @@
|
||||
<packaging>jar</packaging>
|
||||
<version>0.0.1</version>
|
||||
<name>BSkyBlock</name>
|
||||
<description>The next generation of ASkyBlock</description>
|
||||
<description>The next generation of BSkyBlock</description>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
@ -54,8 +54,8 @@
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.5</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock;
|
||||
package us.tastybento.bskyblock;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
@ -7,21 +7,21 @@ import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import us.tastybento.askyblock.config.ASBLocale;
|
||||
import us.tastybento.askyblock.config.Settings;
|
||||
import us.tastybento.askyblock.database.ASBDatabase;
|
||||
import us.tastybento.askyblock.database.IslandsManager;
|
||||
import us.tastybento.askyblock.database.OfflineHistoryMessages;
|
||||
import us.tastybento.askyblock.database.PlayersManager;
|
||||
import us.tastybento.askyblock.util.VaultHelper;
|
||||
import us.tastybento.bskyblock.config.ASBLocale;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.database.ASBDatabase;
|
||||
import us.tastybento.bskyblock.database.IslandsManager;
|
||||
import us.tastybento.bskyblock.database.OfflineHistoryMessages;
|
||||
import us.tastybento.bskyblock.database.PlayersManager;
|
||||
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 Poslovitch
|
||||
*/
|
||||
public class ASkyBlock extends JavaPlugin{
|
||||
private static ASkyBlock plugin;
|
||||
public class BSkyBlock extends JavaPlugin{
|
||||
private static BSkyBlock plugin;
|
||||
|
||||
private HashMap<String, ASBLocale> locales = new HashMap<String, ASBLocale>();
|
||||
|
||||
@ -122,10 +122,10 @@ public class ASkyBlock extends JavaPlugin{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns ASkyBlock object instance
|
||||
* @return ASkyBlock instance
|
||||
* Returns BSkyBlock object instance
|
||||
* @return BSkyBlock instance
|
||||
*/
|
||||
public static ASkyBlock getInstance(){
|
||||
public static BSkyBlock getInstance(){
|
||||
return plugin;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock;
|
||||
package us.tastybento.bskyblock;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
@ -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.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
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
|
@ -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.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
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
|
@ -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.event.Cancellable;
|
||||
@ -6,7 +6,7 @@ import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
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
|
@ -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.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
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
|
@ -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.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
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
|
@ -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.Event;
|
||||
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.
|
@ -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.Event;
|
||||
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.
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.commands;
|
||||
package us.tastybento.bskyblock.commands;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -12,8 +12,8 @@ import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.TabCompleter;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.util.Util;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.util.Util;
|
||||
|
||||
/**
|
||||
* 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{
|
||||
private Map<String, CommandArgumentHandler> arguments;
|
||||
|
||||
protected ASBCommand(ASkyBlock plugin){
|
||||
protected ASBCommand(BSkyBlock plugin){
|
||||
arguments = new HashMap<String, CommandArgumentHandler>();
|
||||
|
||||
// Automatically register the help argument
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.commands;
|
||||
package us.tastybento.bskyblock.commands;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
|
||||
public class AdminCommand extends ASBCommand{
|
||||
|
||||
public AdminCommand(ASkyBlock plugin) {
|
||||
public AdminCommand(BSkyBlock plugin) {
|
||||
super(plugin);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.commands;
|
||||
package us.tastybento.bskyblock.commands;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@ -6,11 +6,11 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.config.Settings;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.askyblock.util.Util;
|
||||
import us.tastybento.askyblock.util.VaultHelper;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.util.Util;
|
||||
import us.tastybento.bskyblock.util.VaultHelper;
|
||||
|
||||
/**
|
||||
* "/island" command
|
||||
@ -19,9 +19,9 @@ import us.tastybento.askyblock.util.VaultHelper;
|
||||
* @author Poslovitch
|
||||
*/
|
||||
public class IslandCommand extends ASBCommand{
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
|
||||
public IslandCommand(ASkyBlock plugin) {
|
||||
public IslandCommand(BSkyBlock plugin) {
|
||||
super(plugin);
|
||||
this.plugin = plugin;
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.commands;
|
||||
package us.tastybento.bskyblock.commands;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.util.Util;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.util.Util;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
private Reason reason;
|
||||
|
||||
/**
|
||||
@ -28,7 +28,7 @@ public class NotSetup implements CommandExecutor{
|
||||
*
|
||||
* @param reason
|
||||
*/
|
||||
public NotSetup(ASkyBlock plugin, Reason reason){
|
||||
public NotSetup(BSkyBlock plugin, Reason reason){
|
||||
this.reason = reason;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.config;
|
||||
package us.tastybento.bskyblock.config;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Locale;
|
||||
@ -7,7 +7,7 @@ import org.bukkit.ChatColor;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
|
||||
/**
|
||||
* Contains all the texts sent to players
|
||||
@ -17,7 +17,7 @@ import us.tastybento.askyblock.ASkyBlock;
|
||||
*/
|
||||
public class ASBLocale {
|
||||
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
|
||||
private String localeID;
|
||||
private FileConfiguration locale = null;
|
||||
@ -29,7 +29,7 @@ public class ASBLocale {
|
||||
* @param plugin
|
||||
* @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.localeID = localeID;
|
||||
getLocale(localeID);
|
5
src/main/java/us/tastybento/bskyblock/config/PluginConfig.java
Executable file
5
src/main/java/us/tastybento/bskyblock/config/PluginConfig.java
Executable file
@ -0,0 +1,5 @@
|
||||
package us.tastybento.bskyblock.config;
|
||||
|
||||
public class PluginConfig {
|
||||
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
package us.tastybento.askyblock.config;
|
||||
package us.tastybento.bskyblock.config;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import us.tastybento.askyblock.database.ASBDatabase.DatabaseType;
|
||||
import us.tastybento.askyblock.database.OfflineHistoryMessages.HistoryMessageType;
|
||||
import us.tastybento.askyblock.database.objects.Island.SettingsFlag;
|
||||
import us.tastybento.bskyblock.database.ASBDatabase.DatabaseType;
|
||||
import us.tastybento.bskyblock.database.OfflineHistoryMessages.HistoryMessageType;
|
||||
import us.tastybento.bskyblock.database.objects.Island.SettingsFlag;
|
||||
|
||||
/**
|
||||
* All the plugin settings are here
|
@ -1,15 +1,15 @@
|
||||
package us.tastybento.askyblock.database;
|
||||
package us.tastybento.bskyblock.database;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import us.tastybento.askyblock.config.Settings;
|
||||
import us.tastybento.askyblock.database.flatfile.FlatFileDatabase;
|
||||
import us.tastybento.askyblock.database.mysql.MySQLDatabase;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.askyblock.database.objects.Player;
|
||||
import us.tastybento.askyblock.database.sqlite.SQLiteDatabase;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.database.flatfile.FlatFileDatabase;
|
||||
import us.tastybento.bskyblock.database.mysql.MySQLDatabase;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.database.objects.Player;
|
||||
import us.tastybento.bskyblock.database.sqlite.SQLiteDatabase;
|
||||
|
||||
public abstract class ASBDatabase {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.database;
|
||||
package us.tastybento.bskyblock.database;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map.Entry;
|
||||
@ -6,12 +6,12 @@ import java.util.UUID;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
|
||||
public class IslandsManager {
|
||||
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
private ASBDatabase database;
|
||||
|
||||
private HashMap<Location, Island> islands;
|
||||
@ -20,7 +20,7 @@ public class IslandsManager {
|
||||
// Metrics data
|
||||
private int metrics_createdcount = 0;
|
||||
|
||||
public IslandsManager(ASkyBlock plugin){
|
||||
public IslandsManager(BSkyBlock plugin){
|
||||
this.plugin = plugin;
|
||||
database = ASBDatabase.getDatabase();
|
||||
islands = new HashMap<Location, Island>();
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.database;
|
||||
package us.tastybento.bskyblock.database;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -8,8 +8,8 @@ import java.util.UUID;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
|
||||
/**
|
||||
* Handles offline messaging to players and teams
|
||||
@ -17,13 +17,13 @@ import us.tastybento.askyblock.config.Settings;
|
||||
* @author Tastybento
|
||||
*/
|
||||
public class OfflineHistoryMessages {
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
private ASBDatabase database;
|
||||
|
||||
// Offline Messages
|
||||
private HashMap<UUID, List<String>> messages;
|
||||
|
||||
public OfflineHistoryMessages(ASkyBlock plugin){
|
||||
public OfflineHistoryMessages(BSkyBlock plugin){
|
||||
this.plugin = plugin;
|
||||
database = ASBDatabase.getDatabase();
|
||||
messages = new HashMap<UUID, List<String>>();
|
@ -1,20 +1,20 @@
|
||||
package us.tastybento.askyblock.database;
|
||||
package us.tastybento.bskyblock.database;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.UUID;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.database.objects.Player;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.database.objects.Player;
|
||||
|
||||
public class PlayersManager{
|
||||
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
private ASBDatabase database;
|
||||
|
||||
private HashMap<UUID, Player> players;
|
||||
|
||||
public PlayersManager(ASkyBlock plugin){
|
||||
public PlayersManager(BSkyBlock plugin){
|
||||
this.plugin = plugin;
|
||||
database = ASBDatabase.getDatabase();
|
||||
players = new HashMap<UUID, Player>();
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.database.flatfile;
|
||||
package us.tastybento.bskyblock.database.flatfile;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import us.tastybento.askyblock.database.ASBDatabase;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.askyblock.database.objects.Player;
|
||||
import us.tastybento.bskyblock.database.ASBDatabase;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.database.objects.Player;
|
||||
|
||||
public class FlatFileDatabase extends ASBDatabase{
|
||||
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.database.mysql;
|
||||
package us.tastybento.bskyblock.database.mysql;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import us.tastybento.askyblock.database.ASBDatabase;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.askyblock.database.objects.Player;
|
||||
import us.tastybento.bskyblock.database.ASBDatabase;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.database.objects.Player;
|
||||
|
||||
public class MySQLDatabase extends ASBDatabase{
|
||||
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.database.objects;
|
||||
package us.tastybento.bskyblock.database.objects;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -6,10 +6,10 @@ import java.util.UUID;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.api.events.island.IslandLockEvent;
|
||||
import us.tastybento.askyblock.api.events.island.IslandUnlockEvent;
|
||||
import us.tastybento.askyblock.config.Settings;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.api.events.island.IslandLockEvent;
|
||||
import us.tastybento.bskyblock.api.events.island.IslandUnlockEvent;
|
||||
import us.tastybento.bskyblock.config.Settings;
|
||||
|
||||
/**
|
||||
* Stores all the info about an island
|
||||
@ -19,7 +19,7 @@ import us.tastybento.askyblock.config.Settings;
|
||||
* @author Poslovitch
|
||||
*/
|
||||
public class Island {
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
|
||||
//// Island ////
|
||||
// The center of the island itself
|
||||
@ -56,7 +56,7 @@ public class Island {
|
||||
//// Protection ////
|
||||
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){
|
||||
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
package us.tastybento.askyblock.database.objects;
|
||||
package us.tastybento.bskyblock.database.objects;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
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
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.database.sqlite;
|
||||
package us.tastybento.bskyblock.database.sqlite;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import us.tastybento.askyblock.database.ASBDatabase;
|
||||
import us.tastybento.askyblock.database.objects.Island;
|
||||
import us.tastybento.askyblock.database.objects.Player;
|
||||
import us.tastybento.bskyblock.database.ASBDatabase;
|
||||
import us.tastybento.bskyblock.database.objects.Island;
|
||||
import us.tastybento.bskyblock.database.objects.Player;
|
||||
|
||||
public class SQLiteDatabase extends ASBDatabase{
|
||||
|
@ -1,19 +1,19 @@
|
||||
package us.tastybento.askyblock.util;
|
||||
package us.tastybento.bskyblock.util;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
|
||||
/**
|
||||
* @author Tastybento
|
||||
* @author Poslovitch
|
||||
*/
|
||||
public class FileLister{
|
||||
private ASkyBlock plugin;
|
||||
private BSkyBlock plugin;
|
||||
|
||||
public FileLister(ASkyBlock plugin){
|
||||
public FileLister(BSkyBlock plugin){
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
@ -1,12 +1,12 @@
|
||||
package us.tastybento.askyblock.util;
|
||||
package us.tastybento.bskyblock.util;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* A set of utility methods
|
||||
@ -15,7 +15,7 @@ import us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
* @author Poslovitch
|
||||
*/
|
||||
public class Util {
|
||||
private static ASkyBlock plugin = ASkyBlock.getInstance();
|
||||
private static BSkyBlock plugin = BSkyBlock.getInstance();
|
||||
|
||||
public static void sendMessage(CommandSender sender, String message){
|
||||
if (!ChatColor.stripColor(message).trim().isEmpty()) {
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.util;
|
||||
package us.tastybento.bskyblock.util;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -6,7 +6,7 @@ import org.bukkit.plugin.RegisteredServiceProvider;
|
||||
|
||||
import net.milkbowl.vault.economy.Economy;
|
||||
import net.milkbowl.vault.permission.Permission;
|
||||
import us.tastybento.askyblock.ASkyBlock;
|
||||
import us.tastybento.bskyblock.BSkyBlock;
|
||||
|
||||
/**
|
||||
* Helper class for Vault Economy and Permissions
|
||||
@ -23,7 +23,7 @@ public class VaultHelper {
|
||||
*
|
||||
* @return true if successful
|
||||
*/
|
||||
public static boolean setupEconomy(ASkyBlock plugin) {
|
||||
public static boolean setupEconomy(BSkyBlock plugin) {
|
||||
RegisteredServiceProvider<Economy> economyProvider = plugin.getServer().getServicesManager()
|
||||
.getRegistration(Economy.class);
|
||||
if (economyProvider != null) {
|
||||
@ -37,7 +37,7 @@ public class VaultHelper {
|
||||
*
|
||||
* @return true if successful
|
||||
*/
|
||||
public static boolean setupPermissions(ASkyBlock plugin) {
|
||||
public static boolean setupPermissions(BSkyBlock plugin) {
|
||||
RegisteredServiceProvider<Permission> permissionProvider = plugin.getServer().getServicesManager()
|
||||
.getRegistration(Permission.class);
|
||||
if (permissionProvider != null) {
|
@ -1,4 +1,4 @@
|
||||
package us.tastybento.askyblock.util.nms;
|
||||
package us.tastybento.bskyblock.util.nms;
|
||||
|
||||
import org.bukkit.entity.Player;
|
||||
|
@ -1,11 +1,11 @@
|
||||
package us.tastybento.askyblock.util.nms.fallback;
|
||||
package us.tastybento.bskyblock.util.nms.fallback;
|
||||
|
||||
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 Poslovitch
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_10_R1
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_11_R1
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_12_R1
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_7_R3
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_7_R4
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_8_R1
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_8_R2
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_8_R3
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_9_R1
|
@ -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 us.tastybento.askyblock.util.nms.NMSAbstraction;
|
||||
import us.tastybento.bskyblock.util.nms.NMSAbstraction;
|
||||
|
||||
/**
|
||||
* NMS Handler for v1_9_R2
|
@ -1,5 +0,0 @@
|
||||
package us.tastybento.askyblock.config;
|
||||
|
||||
public class PluginConfig {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user