gq to me
change of domain name
This commit is contained in:
parent
1717733fab
commit
b24ddfba27
117 changed files with 1255 additions and 1255 deletions
12
build.gradle
12
build.gradle
|
@ -73,13 +73,13 @@ dependencies {
|
||||||
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.1.2'
|
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Core:2.1.2'
|
||||||
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.1.2'
|
compileOnly 'com.fastasyncworldedit:FastAsyncWorldEdit-Bukkit:2.1.2'
|
||||||
compileOnly 'me.clip:placeholderapi:2.11.1'
|
compileOnly 'me.clip:placeholderapi:2.11.1'
|
||||||
compileOnly 'net.citizensnpcs:citizens-main:2.0.29-SNAPSHOT'
|
compileOnly 'net.citizensnpcs:citizens-main:2.0.30-SNAPSHOT'
|
||||||
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1'
|
compileOnly 'com.onarandombox.multiversecore:Multiverse-Core:4.3.1'
|
||||||
compileOnly fileTree(dir: 'libs', include: '*.jar')
|
compileOnly fileTree(dir: 'libs', include: '*.jar')
|
||||||
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
|
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.18.2-R0.1-SNAPSHOT")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'gq.unurled'
|
group = 'me.unurled'
|
||||||
version = '0.5.3'
|
version = '0.5.3'
|
||||||
description = 'Raxen'
|
description = 'Raxen'
|
||||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
|
@ -109,10 +109,10 @@ shadowJar {
|
||||||
include dependency('org.mongodb:bson:4.5.1')
|
include dependency('org.mongodb:bson:4.5.1')
|
||||||
include dependency('org.mongodb:mongodb-driver-core:4.5.1')
|
include dependency('org.mongodb:mongodb-driver-core:4.5.1')
|
||||||
}
|
}
|
||||||
relocate("de.tr7zw.changeme", "gq.unurled.libs.de.tr7zw")
|
relocate("de.tr7zw.changeme", "me.unurled.libs.de.tr7zw")
|
||||||
relocate("de.tr7zw", "gq.unurled.libs.de.tr7zw")
|
relocate("de.tr7zw", "me.unurled.libs.de.tr7zw")
|
||||||
relocate("com.mongodb", 'gq.unurled.libs.com.mongodb')
|
relocate("com.mongodb", 'me.unurled.libs.com.mongodb')
|
||||||
relocate("org.bson", 'gq.unurled.libs.org.bson')
|
relocate("org.bson", 'me.unurled.libs.org.bson')
|
||||||
processResources {
|
processResources {
|
||||||
expand version: project.version
|
expand version: project.version
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
package gq.unurled.raxen.components.entity.other.spawn;
|
|
||||||
|
|
||||||
public class Eggs {
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
package gq.unurled.raxen.components.items;
|
|
||||||
|
|
||||||
public class CustomModelData {
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
package gq.unurled.raxen.utils.libs;
|
|
||||||
|
|
||||||
public class WorldEdit {
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,19 +1,19 @@
|
||||||
package gq.unurled.raxen;
|
package me.unurled.raxen;
|
||||||
|
|
||||||
import com.comphenix.protocol.ProtocolLibrary;
|
import com.comphenix.protocol.ProtocolLibrary;
|
||||||
import com.comphenix.protocol.ProtocolManager;
|
import com.comphenix.protocol.ProtocolManager;
|
||||||
import gq.unurled.raxen.config.Config;
|
|
||||||
import gq.unurled.raxen.config.PlayerConfig;
|
|
||||||
import gq.unurled.raxen.manager.Manager;
|
|
||||||
import gq.unurled.raxen.utils.Reload;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.config.Config;
|
||||||
|
import me.unurled.raxen.config.PlayerConfig;
|
||||||
|
import me.unurled.raxen.manager.Manager;
|
||||||
|
import me.unurled.raxen.utils.Reload;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorComp;
|
import static me.unurled.raxen.utils.Utils.colorComp;
|
||||||
|
|
||||||
public final class Raxen extends JavaPlugin {
|
public final class Raxen extends JavaPlugin {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.commands;
|
package me.unurled.raxen.commands;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.StorageManager;
|
import me.unurled.raxen.manager.entity.StorageManager;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
import net.kyori.adventure.text.TextComponent;
|
||||||
import net.kyori.adventure.text.event.ClickEvent;
|
import net.kyori.adventure.text.event.ClickEvent;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
|
@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class RaxenCommand implements TabExecutor {
|
public class RaxenCommand implements TabExecutor {
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public class RaxenCommand implements TabExecutor {
|
||||||
"<dark_aqua> Raxen ",
|
"<dark_aqua> Raxen ",
|
||||||
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
||||||
"<dark_aqua> - Author: <b><red>U<gold>n<yellow>u<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
"<dark_aqua> - Author: <b><red>U<gold>n<yellow>u<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
||||||
TextComponent txt = colorTextComp("<dark_aqua> - Website: https://unurled.gq");
|
TextComponent txt = colorTextComp("<dark_aqua> - Website: https://unurled.me");
|
||||||
sender.sendMessage(txt);
|
sender.sendMessage(txt);
|
||||||
sender.sendMessage(coloredString("<gold>---------------------------------------------"));
|
sender.sendMessage(coloredString("<gold>---------------------------------------------"));
|
||||||
return true;
|
return true;
|
||||||
|
@ -87,7 +87,7 @@ public class RaxenCommand implements TabExecutor {
|
||||||
"<dark_aqua> Raxen ",
|
"<dark_aqua> Raxen ",
|
||||||
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
||||||
"<dark_aqua> - Author: <b><red>U<gold>n&eu<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
"<dark_aqua> - Author: <b><red>U<gold>n&eu<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
||||||
TextComponent txt=colorTextComp("<dark_aqua> - Website: https://unurled.gq");
|
TextComponent txt=colorTextComp("<dark_aqua> - Website: https://unurled.me");
|
||||||
sender.sendMessage(txt);
|
sender.sendMessage(txt);
|
||||||
sender.sendMessage(coloredString("<gold>---------------------------------------------"));
|
sender.sendMessage(coloredString("<gold>---------------------------------------------"));
|
||||||
return true;
|
return true;
|
||||||
|
@ -110,8 +110,8 @@ public class RaxenCommand implements TabExecutor {
|
||||||
"<dark_aqua> Raxen ",
|
"<dark_aqua> Raxen ",
|
||||||
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
"<dark_aqua> - Version: " + Raxen.getVersion(),
|
||||||
"<dark_aqua> - Author: <b><red>U<gold>n&eu<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
"<dark_aqua> - Author: <b><red>U<gold>n&eu<dark_green>r<green>l<aqua>e<dark_aqua>d<reset>");
|
||||||
TextComponent txt = (TextComponent) colorComp("<dark_aqua> - Website: https://unurled.gq")
|
TextComponent txt = (TextComponent) colorComp("<dark_aqua> - Website: https://unurled.me")
|
||||||
.clickEvent(ClickEvent.openUrl("https://unurled.gq"));
|
.clickEvent(ClickEvent.openUrl("https://unurled.me"));
|
||||||
player.sendMessage(txt);
|
player.sendMessage(txt);
|
||||||
msgPlayer(player, "", "<gold>---------------------------------------------");
|
msgPlayer(player, "", "<gold>---------------------------------------------");
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
|
@ -15,8 +15,8 @@ import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Items.customModelData;
|
import static me.unurled.raxen.utils.Items.customModelData;
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
public class CustomModelDataCommand implements TabExecutor {
|
public class CustomModelDataCommand implements TabExecutor {
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.gui.ItemListGui;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.gui.ItemListGui;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
|
@ -12,7 +12,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class ItemListCommand implements TabExecutor {
|
public class ItemListCommand implements TabExecutor {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -19,8 +19,8 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
import static gq.unurled.raxen.components.entity.player.PlayerUtils.updateSkills;
|
import static me.unurled.raxen.components.entity.player.PlayerUtils.updateSkills;
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class NbtCommand implements TabExecutor {
|
public class NbtCommand implements TabExecutor {
|
||||||
|
|
|
@ -1,36 +1,36 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import gq.unurled.raxen.utils.Reload;
|
import me.unurled.raxen.utils.Reload;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class ReloadCommand implements TabExecutor {
|
public class ReloadCommand implements TabExecutor {
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String msg, @NotNull String[] args) {
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String msg, @NotNull String[] args) {
|
||||||
if(sender instanceof Player) {
|
if(sender instanceof Player) {
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
if(!player.hasPermission("raxen.reload.cmd")) {
|
if(!player.hasPermission("raxen.reload.cmd")) {
|
||||||
player.sendMessage(noPerms());
|
player.sendMessage(noPerms());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reload.kickAll();
|
Reload.kickAll();
|
||||||
log(colorString("<red>Server stopping!\n Using: /rlpl.\n Please wait a little bit."));
|
log(colorString("<red>Server stopping!\n Using: /rlpl.\n Please wait a little bit."));
|
||||||
Bukkit.getServer().shutdown();
|
Bukkit.getServer().shutdown();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) {
|
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
|
@ -14,8 +14,8 @@ import org.jetbrains.annotations.Nullable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.components.entity.other.EntityUtils.setNameSpacedKeys;
|
import static me.unurled.raxen.components.entity.other.EntityUtils.setNameSpacedKeys;
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class SpawnEntity implements TabExecutor {
|
public class SpawnEntity implements TabExecutor {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.commands.admin;
|
package me.unurled.raxen.commands.admin;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
|
@ -10,8 +10,8 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorTextComp;
|
import static me.unurled.raxen.utils.Utils.colorTextComp;
|
||||||
import static gq.unurled.raxen.utils.Utils.log;
|
import static me.unurled.raxen.utils.Utils.log;
|
||||||
|
|
||||||
public class TestGuiCommand implements TabExecutor {
|
public class TestGuiCommand implements TabExecutor {
|
||||||
@Override
|
@Override
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.commands.player;
|
package me.unurled.raxen.commands.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
@ -11,7 +11,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.error;
|
import static me.unurled.raxen.utils.Utils.error;
|
||||||
|
|
||||||
public class ClassCommand implements TabExecutor {
|
public class ClassCommand implements TabExecutor {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.commands.player;
|
package me.unurled.raxen.commands.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.gui.MainGui;
|
import me.unurled.raxen.components.gui.MainGui;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
|
@ -12,8 +12,8 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.errorConsoleSender;
|
import static me.unurled.raxen.utils.Utils.errorConsoleSender;
|
||||||
import static gq.unurled.raxen.utils.Utils.noPerms;
|
import static me.unurled.raxen.utils.Utils.noPerms;
|
||||||
|
|
||||||
public class MainGuiCommand implements TabExecutor {
|
public class MainGuiCommand implements TabExecutor {
|
||||||
|
|
|
@ -1,68 +1,68 @@
|
||||||
package gq.unurled.raxen.commands.player;
|
package me.unurled.raxen.commands.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.player.PlayerUtils;
|
import me.unurled.raxen.components.entity.player.PlayerUtils;
|
||||||
import gq.unurled.raxen.components.entity.player.attributes.Attributes;
|
import me.unurled.raxen.components.entity.player.attributes.Attributes;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.TabExecutor;
|
import org.bukkit.command.TabExecutor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorTextComp;
|
import static me.unurled.raxen.utils.Utils.colorTextComp;
|
||||||
import static gq.unurled.raxen.utils.Utils.error;
|
import static me.unurled.raxen.utils.Utils.error;
|
||||||
|
|
||||||
public class SkillsCommand implements TabExecutor {
|
public class SkillsCommand implements TabExecutor {
|
||||||
|
|
||||||
private Raxen main;
|
private Raxen main;
|
||||||
|
|
||||||
public SkillsCommand(Raxen main) {
|
public SkillsCommand(Raxen main) {
|
||||||
this.main = main;
|
this.main = main;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String msg, @NotNull String[] args) {
|
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String msg, @NotNull String[] args) {
|
||||||
if(!(sender instanceof Player)) {
|
if(!(sender instanceof Player)) {
|
||||||
error((Raxen) Bukkit.getPluginManager().getPlugin("Raxen"),"The console can't execute this Command!");
|
error((Raxen) Bukkit.getPluginManager().getPlugin("Raxen"),"The console can't execute this Command!");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
Attributes attributes = new Attributes(main);
|
Attributes attributes = new Attributes(main);
|
||||||
switch (args.length) {
|
switch (args.length) {
|
||||||
case 0:
|
case 0:
|
||||||
//open gui
|
//open gui
|
||||||
player.sendMessage(colorTextComp("<red>GUI not implemented yet..").append(colorTextComp("<red>Try /skill help.")));
|
player.sendMessage(colorTextComp("<red>GUI not implemented yet..").append(colorTextComp("<red>Try /skill help.")));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
player.sendMessage(colorTextComp("<white>Use the command like: ")
|
player.sendMessage(colorTextComp("<white>Use the command like: ")
|
||||||
.append(colorTextComp("<white>/skill <dark_aqua>{health|defense|speed|strength} {add|set|remove} {amount}")));
|
.append(colorTextComp("<white>/skill <dark_aqua>{health|defense|speed|strength} {add|set|remove} {amount}")));
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
PlayerManager pm = ((Raxen) Bukkit.getPluginManager().getPlugin("Raxen")).getManager().getPlayerManager();
|
PlayerManager pm = ((Raxen) Bukkit.getPluginManager().getPlugin("Raxen")).getManager().getPlayerManager();
|
||||||
for (String s : pm.getAttribute().keySet()) {
|
for (String s : pm.getAttribute().keySet()) {
|
||||||
if (s.equalsIgnoreCase(args[0]))
|
if (s.equalsIgnoreCase(args[0]))
|
||||||
switch (args[1]) {
|
switch (args[1]) {
|
||||||
case "add":
|
case "add":
|
||||||
pm.getAttribute().get(s).add(player, Integer.parseInt(args[2]));
|
pm.getAttribute().get(s).add(player, Integer.parseInt(args[2]));
|
||||||
case "remove":
|
case "remove":
|
||||||
pm.getAttribute().get(s).remove(player, Integer.parseInt(args[2]));
|
pm.getAttribute().get(s).remove(player, Integer.parseInt(args[2]));
|
||||||
case "set":
|
case "set":
|
||||||
pm.getAttribute().get(s).set(player, Integer.parseInt(args[2]));
|
pm.getAttribute().get(s).set(player, Integer.parseInt(args[2]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PlayerUtils.updateSkills(main, player);
|
PlayerUtils.updateSkills(main, player);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) {
|
public @Nullable List<String> onTabComplete(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.commands.player;
|
package me.unurled.raxen.commands.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class StorageCommand implements TabExecutor {
|
public class StorageCommand implements TabExecutor {
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
package gq.unurled.raxen.components.dungeons;
|
package me.unurled.raxen.components.dungeons;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.dungeons.types.MonsterType;
|
|
||||||
import gq.unurled.raxen.components.entity.other.RaxenEntity;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.dungeons.types.MonsterType;
|
||||||
|
import me.unurled.raxen.components.entity.other.RaxenEntity;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.DungeonUtils.getRadiusFromRank;
|
import static me.unurled.raxen.utils.DungeonUtils.getRadiusFromRank;
|
||||||
|
|
||||||
public class Dungeon {
|
public class Dungeon {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.dungeons;
|
package me.unurled.raxen.components.dungeons;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.dungeons;
|
package me.unurled.raxen.components.dungeons;
|
||||||
|
|
||||||
public enum Rank {
|
public enum Rank {
|
||||||
F,
|
F,
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.components.dungeons;
|
package me.unurled.raxen.components.dungeons;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.entity.other.RaxenEntity;
|
import me.unurled.raxen.components.entity.other.RaxenEntity;
|
||||||
import gq.unurled.raxen.components.lootchest.loots.LootItem;
|
import me.unurled.raxen.components.lootchest.loots.LootItem;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.dungeons;
|
package me.unurled.raxen.components.dungeons;
|
||||||
|
|
||||||
public enum Types {
|
public enum Types {
|
||||||
JUNGLE,
|
JUNGLE,
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.dungeons.types;
|
package me.unurled.raxen.components.dungeons.types;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.dungeons.Rank;
|
import me.unurled.raxen.components.dungeons.Rank;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class MonsterType {
|
public class MonsterType {
|
||||||
public enum type {;
|
public enum type {;
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.components.dungeons.types.forest;
|
package me.unurled.raxen.components.dungeons.types.forest;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.dungeons.Dungeon;
|
import me.unurled.raxen.components.dungeons.Dungeon;
|
||||||
import gq.unurled.raxen.components.dungeons.Rank;
|
import me.unurled.raxen.components.dungeons.Rank;
|
||||||
import gq.unurled.raxen.components.dungeons.Types;
|
import me.unurled.raxen.components.dungeons.Types;
|
||||||
import gq.unurled.raxen.components.dungeons.types.MonsterType;
|
import me.unurled.raxen.components.dungeons.types.MonsterType;
|
||||||
|
|
||||||
public class ForestDungeon extends Dungeon {
|
public class ForestDungeon extends Dungeon {
|
||||||
public ForestDungeon(String name, Rank rank, Types types, MonsterType mType) {
|
public ForestDungeon(String name, Rank rank, Types types, MonsterType mType) {
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.components.dungeons.types.forest;
|
package me.unurled.raxen.components.dungeons.types.forest;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.dungeons.types.MonsterType;
|
|
||||||
import gq.unurled.raxen.components.entity.other.custom.dungeon.forest.Elf;
|
|
||||||
import gq.unurled.raxen.components.entity.other.custom.dungeon.forest.Wolf;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.components.dungeons.types.MonsterType;
|
||||||
|
import me.unurled.raxen.components.entity.other.custom.dungeon.forest.Elf;
|
||||||
|
import me.unurled.raxen.components.entity.other.custom.dungeon.forest.Wolf;
|
||||||
|
|
||||||
public class ForestMonster extends MonsterType {
|
public class ForestMonster extends MonsterType {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.enchantments;
|
package me.unurled.raxen.components.enchantments;
|
||||||
|
|
||||||
import io.papermc.paper.enchantments.EnchantmentRarity;
|
import io.papermc.paper.enchantments.EnchantmentRarity;
|
||||||
import net.kyori.adventure.key.Key;
|
import net.kyori.adventure.key.Key;
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.enchantments.player;
|
package me.unurled.raxen.components.enchantments.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.enchantments.EnchantmentWarpper;
|
import me.unurled.raxen.components.enchantments.EnchantmentWarpper;
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -10,7 +10,7 @@ import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class Attribute {
|
public class Attribute {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.Attributes;
|
package me.unurled.raxen.components.entity.Attributes;
|
||||||
|
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.entity.other;
|
package me.unurled.raxen.components.entity.other;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
|
|
||||||
public class EntityNamespacedKey {
|
public class EntityNamespacedKey {
|
|
@ -1,14 +1,14 @@
|
||||||
package gq.unurled.raxen.components.entity.other;
|
package me.unurled.raxen.components.entity.other;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.persistence.PersistentDataContainer;
|
import org.bukkit.persistence.PersistentDataContainer;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class EntityUtils {
|
public class EntityUtils {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.entity.other;
|
package me.unurled.raxen.components.entity.other;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
|
@ -1,10 +1,10 @@
|
||||||
package gq.unurled.raxen.components.entity.other.custom;
|
package me.unurled.raxen.components.entity.other.custom;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorString;
|
import static me.unurled.raxen.utils.Utils.colorString;
|
||||||
|
|
||||||
public class Entity {
|
public class Entity {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.entity.other.custom.dungeon.forest;
|
package me.unurled.raxen.components.entity.other.custom.dungeon.forest;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.entity.other.RaxenEntity;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.entity.other.RaxenEntity;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.entity.other.custom.dungeon.forest;
|
package me.unurled.raxen.components.entity.other.custom.dungeon.forest;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.entity.other.RaxenEntity;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.entity.other.RaxenEntity;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.entity.other.custom.hostile.low;
|
package me.unurled.raxen.components.entity.other.custom.hostile.low;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.RaxenEntity;
|
import me.unurled.raxen.components.entity.other.RaxenEntity;
|
||||||
import gq.unurled.raxen.components.entity.other.custom.Entity;
|
import me.unurled.raxen.components.entity.other.custom.Entity;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package me.unurled.raxen.components.entity.other.spawn;
|
||||||
|
|
||||||
|
public class Eggs {
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.entity.player;
|
package me.unurled.raxen.components.entity.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.entity.player.storages.Inventory;
|
import me.unurled.raxen.components.entity.player.storages.Inventory;
|
||||||
|
|
||||||
public class Inventories {
|
public class Inventories {
|
||||||
private Inventory inv;
|
private Inventory inv;
|
|
@ -1,12 +1,12 @@
|
||||||
package gq.unurled.raxen.components.entity.player;
|
package me.unurled.raxen.components.entity.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.attribute.Attribute;
|
import org.bukkit.attribute.Attribute;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class PlayerUtils {
|
public class PlayerUtils {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
package gq.unurled.raxen.components.entity.player;
|
package me.unurled.raxen.components.entity.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
import gq.unurled.raxen.components.entity.player.attributes.Attribute;
|
import me.unurled.raxen.components.entity.player.attributes.Attribute;
|
||||||
import gq.unurled.raxen.components.entity.player.storages.EnderChest;
|
import me.unurled.raxen.components.entity.player.storages.EnderChest;
|
||||||
import gq.unurled.raxen.components.entity.player.storages.Inventory;
|
import me.unurled.raxen.components.entity.player.storages.Inventory;
|
||||||
import gq.unurled.raxen.utils.EntityAttributes;
|
import me.unurled.raxen.utils.EntityAttributes;
|
||||||
import gq.unurled.raxen.utils.Items;
|
import me.unurled.raxen.utils.Items;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -20,8 +20,8 @@ import org.bukkit.persistence.PersistentDataType;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Items.setItemsToInventory;
|
import static me.unurled.raxen.utils.Items.setItemsToInventory;
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class RaxenPlayer {
|
public class RaxenPlayer {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.components.entity.player;
|
package me.unurled.raxen.components.entity.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.utils.libs.Vault;
|
import me.unurled.raxen.utils.libs.Vault;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scoreboard.DisplaySlot;
|
import org.bukkit.scoreboard.DisplaySlot;
|
||||||
|
@ -9,7 +9,7 @@ import org.bukkit.scoreboard.Objective;
|
||||||
import org.bukkit.scoreboard.Score;
|
import org.bukkit.scoreboard.Score;
|
||||||
import org.bukkit.scoreboard.ScoreboardManager;
|
import org.bukkit.scoreboard.ScoreboardManager;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class Scoreboard {
|
public class Scoreboard {
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class Scoreboard {
|
||||||
score2.setScore(2);
|
score2.setScore(2);
|
||||||
Score score3 = obj.getScore(colorString("<gold>Coins: <gold>" + vault.getBalanceString(player)));
|
Score score3 = obj.getScore(colorString("<gold>Coins: <gold>" + vault.getBalanceString(player)));
|
||||||
score3.setScore(1);
|
score3.setScore(1);
|
||||||
Score score4 = obj.getScore(colorString("<yellow>unurled.gq"));
|
Score score4 = obj.getScore(colorString("<yellow>unurled.me"));
|
||||||
score4.setScore(0);
|
score4.setScore(0);
|
||||||
player.setScoreboard(board);
|
player.setScoreboard(board);
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.entity.player;
|
package me.unurled.raxen.components.entity.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.entity.player.storages.EnderChest;
|
import me.unurled.raxen.components.entity.player.storages.EnderChest;
|
||||||
|
|
||||||
public class Storage {
|
public class Storage {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.player.attributes;
|
package me.unurled.raxen.components.entity.player.attributes;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.entity.player.attributes;
|
package me.unurled.raxen.components.entity.player.attributes;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
|
@ -1,10 +1,10 @@
|
||||||
package gq.unurled.raxen.components.entity.player.classes;
|
package me.unurled.raxen.components.entity.player.classes;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorTextComp;
|
import static me.unurled.raxen.utils.Utils.colorTextComp;
|
||||||
|
|
||||||
public class Class {
|
public class Class {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.components.entity.player.classes;
|
package me.unurled.raxen.components.entity.player.classes;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.configuration.InvalidConfigurationException;
|
import org.bukkit.configuration.InvalidConfigurationException;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
@ -13,8 +13,8 @@ import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
import static gq.unurled.raxen.utils.Utils.error;
|
import static me.unurled.raxen.utils.Utils.error;
|
||||||
|
|
||||||
public class Classes {
|
public class Classes {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.entity.player.classes.list;
|
package me.unurled.raxen.components.entity.player.classes.list;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.items.custom.weapon.Dager;
|
import me.unurled.raxen.components.items.custom.weapon.Dager;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
public class Assassin {
|
public class Assassin {
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.player.storages;
|
package me.unurled.raxen.components.entity.player.storages;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.entity.player.storages;
|
package me.unurled.raxen.components.entity.player.storages;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.gui;
|
package me.unurled.raxen.components.gui;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.entity.player.PlayerUtils;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.entity.player.PlayerUtils;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -17,9 +17,9 @@ import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Items.*;
|
import static me.unurled.raxen.utils.Items.*;
|
||||||
import static gq.unurled.raxen.utils.Utils.fillGreyPane;
|
import static me.unurled.raxen.utils.Utils.fillGreyPane;
|
||||||
import static gq.unurled.raxen.utils.Utils.log;
|
import static me.unurled.raxen.utils.Utils.log;
|
||||||
|
|
||||||
public class ItemListGui implements Listener {
|
public class ItemListGui implements Listener {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.gui;
|
package me.unurled.raxen.components.gui;
|
||||||
|
|
||||||
import gq.unurled.raxen.utils.Items;
|
import me.unurled.raxen.utils.Items;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -10,8 +10,8 @@ import org.bukkit.inventory.meta.SkullMeta;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorComp;
|
import static me.unurled.raxen.utils.Utils.colorComp;
|
||||||
import static gq.unurled.raxen.utils.Utils.fillGreyPane;
|
import static me.unurled.raxen.utils.Utils.fillGreyPane;
|
||||||
|
|
||||||
public class MainGui {
|
public class MainGui {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.items;
|
package me.unurled.raxen.components.items;
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package me.unurled.raxen.components.items;
|
||||||
|
|
||||||
|
public class CustomModelData {
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.items;
|
package me.unurled.raxen.components.items;
|
||||||
|
|
||||||
public class NBT {
|
public class NBT {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package gq.unurled.raxen.components.items.custom;
|
package me.unurled.raxen.components.items.custom;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
|
|
||||||
public interface Item {
|
public interface Item {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.items.custom;
|
package me.unurled.raxen.components.items.custom;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.items.custom.weapon.Dager;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.items.custom.weapon.Dager;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.components.items.custom.weapon;
|
package me.unurled.raxen.components.items.custom.weapon;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.items.custom.Item;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.items.custom.Item;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
|
@ -14,8 +14,8 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.components.items.NBT.*;
|
import static me.unurled.raxen.components.items.NBT.*;
|
||||||
import static gq.unurled.raxen.utils.Utils.colorTextComp;
|
import static me.unurled.raxen.utils.Utils.colorTextComp;
|
||||||
|
|
||||||
public class Dager implements Item {
|
public class Dager implements Item {
|
||||||
@Getter
|
@Getter
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.lootchest;
|
package me.unurled.raxen.components.lootchest;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.components.lootchest.loots;
|
package me.unurled.raxen.components.lootchest.loots;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.items.NBT;
|
import me.unurled.raxen.components.items.NBT;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.components.lootchest.loots;
|
package me.unurled.raxen.components.lootchest.loots;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.components.lootchest.loots.test;
|
package me.unurled.raxen.components.lootchest.loots.test;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.lootchest.loots.CustomLoot;
|
import me.unurled.raxen.components.lootchest.loots.CustomLoot;
|
||||||
|
|
||||||
public class TestSword extends CustomLoot {
|
public class TestSword extends CustomLoot {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.components.resourcepack;
|
package me.unurled.raxen.components.resourcepack;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.server.ResourcePackManager;
|
import me.unurled.raxen.manager.server.ResourcePackManager;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.config;
|
package me.unurled.raxen.config;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.configuration.InvalidConfigurationException;
|
import org.bukkit.configuration.InvalidConfigurationException;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
|
@ -9,7 +9,7 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class Config {
|
public class Config {
|
||||||
private Raxen main;
|
private Raxen main;
|
|
@ -1,286 +1,286 @@
|
||||||
package gq.unurled.raxen.config;
|
package me.unurled.raxen.config;
|
||||||
|
|
||||||
import com.mongodb.client.MongoCollection;
|
import com.mongodb.client.MongoCollection;
|
||||||
import com.mongodb.client.model.Filters;
|
import com.mongodb.client.model.Filters;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.Attributes.Attribute;
|
import me.unurled.raxen.components.entity.Attributes.Attribute;
|
||||||
import gq.unurled.raxen.components.entity.player.Inventories;
|
import me.unurled.raxen.components.entity.player.Inventories;
|
||||||
import gq.unurled.raxen.components.entity.player.PlayerUtils;
|
import me.unurled.raxen.components.entity.player.PlayerUtils;
|
||||||
import gq.unurled.raxen.components.entity.player.Storage;
|
import me.unurled.raxen.components.entity.player.Storage;
|
||||||
import gq.unurled.raxen.components.entity.player.attributes.Attributes;
|
import me.unurled.raxen.components.entity.player.attributes.Attributes;
|
||||||
import gq.unurled.raxen.components.entity.player.storages.EnderChest;
|
import me.unurled.raxen.components.entity.player.storages.EnderChest;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import gq.unurled.raxen.manager.entity.StorageManager;
|
import me.unurled.raxen.manager.entity.StorageManager;
|
||||||
import gq.unurled.raxen.utils.Items;
|
import me.unurled.raxen.utils.Items;
|
||||||
import gq.unurled.raxen.utils.libs.MongoDB;
|
import me.unurled.raxen.utils.libs.MongoDB;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bson.Document;
|
import org.bson.Document;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.InventoryType;
|
import org.bukkit.event.inventory.InventoryType;
|
||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.inventory.PlayerInventory;
|
import org.bukkit.inventory.PlayerInventory;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Items.*;
|
import static me.unurled.raxen.utils.Items.*;
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class PlayerConfig {
|
public class PlayerConfig {
|
||||||
|
|
||||||
private static Raxen main;
|
private static Raxen main;
|
||||||
private MongoDB mongoDB;
|
private MongoDB mongoDB;
|
||||||
private MongoCollection<Document> mongoCollection;
|
private MongoCollection<Document> mongoCollection;
|
||||||
private static PlayerManager playerManager;
|
private static PlayerManager playerManager;
|
||||||
private static StorageManager sto;
|
private static StorageManager sto;
|
||||||
private Attributes attributes;
|
private Attributes attributes;
|
||||||
|
|
||||||
public PlayerConfig(Raxen main) {
|
public PlayerConfig(Raxen main) {
|
||||||
this.main = main;
|
this.main = main;
|
||||||
sto = main.getManager().getStorageManager();
|
sto = main.getManager().getStorageManager();
|
||||||
this.mongoDB = main.getManager().getLibsManager().getMongoDB();
|
this.mongoDB = main.getManager().getLibsManager().getMongoDB();
|
||||||
this.mongoCollection = mongoDB.getMongoCollection();
|
this.mongoCollection = mongoDB.getMongoCollection();
|
||||||
playerManager = main.getManager().getPlayerManager();
|
playerManager = main.getManager().getPlayerManager();
|
||||||
this.attributes = new Attributes(main);
|
this.attributes = new Attributes(main);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* closes mongo connection
|
* closes mongo connection
|
||||||
*/
|
*/
|
||||||
public void close() {
|
public void close() {
|
||||||
mongoDB.close();
|
mongoDB.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* save players stuff to mongo db
|
* save players stuff to mongo db
|
||||||
* @param player
|
* @param player
|
||||||
* @param attributes
|
* @param attributes
|
||||||
* @param invstr
|
* @param invstr
|
||||||
* @param reverse
|
* @param reverse
|
||||||
*/
|
*/
|
||||||
public void saveUsingMongoDB(@NotNull Player player, Attributes attributes, String invstr, Integer reverse) {
|
public void saveUsingMongoDB(@NotNull Player player, Attributes attributes, String invstr, Integer reverse) {
|
||||||
debug(main, "Saving " + player.getName() + "'s data!");
|
debug(main, "Saving " + player.getName() + "'s data!");
|
||||||
Document doc = new Document("uuid", player.getUniqueId().toString())
|
Document doc = new Document("uuid", player.getUniqueId().toString())
|
||||||
.append("name", player.getName())
|
.append("name", player.getName())
|
||||||
.append("inv", invstr);
|
.append("inv", invstr);
|
||||||
HashMap<String, Attribute> attribute = main.getManager().getPlayerManager().getAttribute();
|
HashMap<String, Attribute> attribute = main.getManager().getPlayerManager().getAttribute();
|
||||||
for (String s : attribute.keySet()) {
|
for (String s : attribute.keySet()) {
|
||||||
debug("saving " + s);
|
debug("saving " + s);
|
||||||
doc.append(s, attribute.get(s).get(player));
|
doc.append(s, attribute.get(s).get(player));
|
||||||
}
|
}
|
||||||
if (playerManager.getRaxenPlayer(player).getStorage() != null) {
|
if (playerManager.getRaxenPlayer(player).getStorage() != null) {
|
||||||
if(playerManager.getRaxenPlayer(player).getStorage().getEc() != null) {
|
if(playerManager.getRaxenPlayer(player).getStorage().getEc() != null) {
|
||||||
debug(main, "Saving " + player.getName() + "'s storage!");
|
debug(main, "Saving " + player.getName() + "'s storage!");
|
||||||
EnderChest ec = playerManager.getRaxenPlayer(player).getStorage().getEc();
|
EnderChest ec = playerManager.getRaxenPlayer(player).getStorage().getEc();
|
||||||
List<String> list = new ArrayList<String>();
|
List<String> list = new ArrayList<String>();
|
||||||
reverse = 0;
|
reverse = 0;
|
||||||
for(ItemStack it : ec.getEc()) {
|
for(ItemStack it : ec.getEc()) {
|
||||||
if(it != null && it.getType() != Material.AIR) {
|
if(it != null && it.getType() != Material.AIR) {
|
||||||
String s = Items.itemStackSerialize(it, reverse);
|
String s = Items.itemStackSerialize(it, reverse);
|
||||||
list.add(s);
|
list.add(s);
|
||||||
}
|
}
|
||||||
reverse += 1;
|
reverse += 1;
|
||||||
}
|
}
|
||||||
String ecstr = Items.listItemStackSerialize(list);
|
String ecstr = Items.listItemStackSerialize(list);
|
||||||
doc.append("ec", ecstr);
|
doc.append("ec", ecstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Document playerDoc = mongoCollection.find(Filters.eq("uuid", player.getUniqueId().toString())).first();
|
Document playerDoc = mongoCollection.find(Filters.eq("uuid", player.getUniqueId().toString())).first();
|
||||||
if(playerDoc == null) {
|
if(playerDoc == null) {
|
||||||
mongoCollection.insertOne(doc);
|
mongoCollection.insertOne(doc);
|
||||||
debug(main, "insert one");
|
debug(main, "insert one");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mongoCollection.replaceOne(Filters.eq("uuid", player.getUniqueId().toString()), doc);
|
mongoCollection.replaceOne(Filters.eq("uuid", player.getUniqueId().toString()), doc);
|
||||||
debug(main, "replace one");
|
debug(main, "replace one");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* save players stuff to yml
|
* save players stuff to yml
|
||||||
* @param player
|
* @param player
|
||||||
* @param attributes
|
* @param attributes
|
||||||
* @param invstr
|
* @param invstr
|
||||||
* @param reverse
|
* @param reverse
|
||||||
*/
|
*/
|
||||||
public void saveUsingYml(Player player, Attributes attributes, String invstr, Integer reverse) {
|
public void saveUsingYml(Player player, Attributes attributes, String invstr, Integer reverse) {
|
||||||
FileConfiguration config = sto.createYml(player);
|
FileConfiguration config = sto.createYml(player);
|
||||||
config.set("name", player.getName());
|
config.set("name", player.getName());
|
||||||
HashMap<String, Attribute> attribute = main.getManager().getPlayerManager().getAttribute();
|
HashMap<String, Attribute> attribute = main.getManager().getPlayerManager().getAttribute();
|
||||||
for (String s : attribute.keySet()) {
|
for (String s : attribute.keySet()) {
|
||||||
config.set(s, attribute.get(s).get(player));
|
config.set(s, attribute.get(s).get(player));
|
||||||
}
|
}
|
||||||
config.set("inv", invstr);
|
config.set("inv", invstr);
|
||||||
if (playerManager.getRaxenPlayer(player).getStorage() != null) {
|
if (playerManager.getRaxenPlayer(player).getStorage() != null) {
|
||||||
if(playerManager.getRaxenPlayer(player).getStorage().getEc() != null) {
|
if(playerManager.getRaxenPlayer(player).getStorage().getEc() != null) {
|
||||||
EnderChest ec = playerManager.getRaxenPlayer(player).getStorage().getEc();
|
EnderChest ec = playerManager.getRaxenPlayer(player).getStorage().getEc();
|
||||||
List<String> list = new ArrayList<String>();
|
List<String> list = new ArrayList<String>();
|
||||||
reverse = 0;
|
reverse = 0;
|
||||||
for(ItemStack it : ec.getEc()) {
|
for(ItemStack it : ec.getEc()) {
|
||||||
reverse += 1;
|
reverse += 1;
|
||||||
if(it != null) {
|
if(it != null) {
|
||||||
String s = Items.itemStackSerialize(it, reverse);
|
String s = Items.itemStackSerialize(it, reverse);
|
||||||
list.add(s);
|
list.add(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String ecstr = Items.listItemStackSerialize(list);
|
String ecstr = Items.listItemStackSerialize(list);
|
||||||
config.set("ec", ecstr);
|
config.set("ec", ecstr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
config.save(main.getDataFolder() + "/playerInfo/" + player.getUniqueId() + "/" + "playerInfo.yml");
|
config.save(main.getDataFolder() + "/playerInfo/" + player.getUniqueId() + "/" + "playerInfo.yml");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* load player stuff from mongo db
|
* load player stuff from mongo db
|
||||||
* @param player
|
* @param player
|
||||||
*/
|
*/
|
||||||
public void loadUsingMongoDB(@NotNull Player player) {
|
public void loadUsingMongoDB(@NotNull Player player) {
|
||||||
Document playerDoc = mongoCollection.find(Filters.eq("uuid", player.getUniqueId().toString())).first();
|
Document playerDoc = mongoCollection.find(Filters.eq("uuid", player.getUniqueId().toString())).first();
|
||||||
if(playerDoc == null) {
|
if(playerDoc == null) {
|
||||||
debug(main, "Intiatilising Data for Player: " + player.getName());
|
debug(main, "Intiatilising Data for Player: " + player.getName());
|
||||||
playerManager.getRaxenPlayer(player).createNewAttribute();
|
playerManager.getRaxenPlayer(player).createNewAttribute();
|
||||||
playerManager.getRaxenPlayer(player).createStorage();
|
playerManager.getRaxenPlayer(player).createStorage();
|
||||||
playerManager.getRaxenPlayer(player).createInventory();
|
playerManager.getRaxenPlayer(player).createInventory();
|
||||||
PlayerUtils.updateSkills(main, player);
|
PlayerUtils.updateSkills(main, player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
debug(main, "Loading " + player.getName() + "'s data!");
|
debug(main, "Loading " + player.getName() + "'s data!");
|
||||||
attributes.setAttributes(player, playerDoc.getInteger("MAX_HEALTH"), playerDoc.getInteger("HEALTH"), playerDoc.getInteger("ITEM_HEALTH"),
|
attributes.setAttributes(player, playerDoc.getInteger("MAX_HEALTH"), playerDoc.getInteger("HEALTH"), playerDoc.getInteger("ITEM_HEALTH"),
|
||||||
playerDoc.getInteger("DEFENSE"), playerDoc.getInteger("ITEM_DEFENSE"),
|
playerDoc.getInteger("DEFENSE"), playerDoc.getInteger("ITEM_DEFENSE"),
|
||||||
playerDoc.getInteger("SPEED"), playerDoc.getInteger("ITEM_SPEED"),
|
playerDoc.getInteger("SPEED"), playerDoc.getInteger("ITEM_SPEED"),
|
||||||
playerDoc.getInteger("STRENGTH"), playerDoc.getInteger("ITEM_STRENGTH"),
|
playerDoc.getInteger("STRENGTH"), playerDoc.getInteger("ITEM_STRENGTH"),
|
||||||
playerDoc.getInteger("MAX_MANA"), playerDoc.getInteger("MANA"), playerDoc.getInteger("ITEM_MANA"),
|
playerDoc.getInteger("MAX_MANA"), playerDoc.getInteger("MANA"), playerDoc.getInteger("ITEM_MANA"),
|
||||||
playerDoc.getInteger("LUCK"), playerDoc.getInteger("ITEM_LUCK"));
|
playerDoc.getInteger("LUCK"), playerDoc.getInteger("ITEM_LUCK"));
|
||||||
Inventory ec = Bukkit.createInventory(null, 54, Component.text("Ender Chest"));
|
Inventory ec = Bukkit.createInventory(null, 54, Component.text("Ender Chest"));
|
||||||
if(playerDoc.getString("ec") != null) {
|
if(playerDoc.getString("ec") != null) {
|
||||||
debug(main, "Loading " + player.getName() + "'s storage.");
|
debug(main, "Loading " + player.getName() + "'s storage.");
|
||||||
ec = setItemsToInventory(mapItemStackDeserialize(playerDoc.getString("ec")), ec);
|
ec = setItemsToInventory(mapItemStackDeserialize(playerDoc.getString("ec")), ec);
|
||||||
}
|
}
|
||||||
playerManager.getRaxenPlayer(player).setStorage(ec);
|
playerManager.getRaxenPlayer(player).setStorage(ec);
|
||||||
PlayerInventory inv = player.getInventory();
|
PlayerInventory inv = player.getInventory();
|
||||||
inv = setItemsToInventory(listItemStackDeserialize(playerDoc.getString("inv")), inv);
|
inv = setItemsToInventory(listItemStackDeserialize(playerDoc.getString("inv")), inv);
|
||||||
player.getInventory().setContents(inv.getContents());
|
player.getInventory().setContents(inv.getContents());
|
||||||
player.updateInventory();
|
player.updateInventory();
|
||||||
gq.unurled.raxen.components.entity.player.storages.Inventory invv = new gq.unurled.raxen.components.entity.player.storages.Inventory(inv);
|
me.unurled.raxen.components.entity.player.storages.Inventory invv = new me.unurled.raxen.components.entity.player.storages.Inventory(inv);
|
||||||
Inventories invvv = new Inventories(invv);
|
Inventories invvv = new Inventories(invv);
|
||||||
playerManager.getRaxenPlayer(player).setInventory(inv);
|
playerManager.getRaxenPlayer(player).setInventory(inv);
|
||||||
PlayerUtils.updateSkills(main, player);
|
PlayerUtils.updateSkills(main, player);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* load player stuff from yml
|
* load player stuff from yml
|
||||||
* @param player
|
* @param player
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
public void loadUsingYml(Player player) throws IOException {
|
public void loadUsingYml(Player player) throws IOException {
|
||||||
FileConfiguration config = sto.createYml(player);
|
FileConfiguration config = sto.createYml(player);
|
||||||
attributes.setAttributes(player, config.getInt("maxHealth"), config.getInt("health"), config.getInt("itemHealth"),
|
attributes.setAttributes(player, config.getInt("maxHealth"), config.getInt("health"), config.getInt("itemHealth"),
|
||||||
config.getInt("defense"), config.getInt("itemDefense"),
|
config.getInt("defense"), config.getInt("itemDefense"),
|
||||||
config.getInt("speed"), config.getInt("itemSpeed"),
|
config.getInt("speed"), config.getInt("itemSpeed"),
|
||||||
config.getInt("strength"), config.getInt("itemStrength"),
|
config.getInt("strength"), config.getInt("itemStrength"),
|
||||||
config.getInt("maxMana"), config.getInt("mana"), config.getInt("itemMana"),
|
config.getInt("maxMana"), config.getInt("mana"), config.getInt("itemMana"),
|
||||||
config.getInt("luck"), config.getInt("itemLuck"));
|
config.getInt("luck"), config.getInt("itemLuck"));
|
||||||
Inventory ec = Bukkit.createInventory(null, 54, Component.text("Ender Chest"));
|
Inventory ec = Bukkit.createInventory(null, 54, Component.text("Ender Chest"));
|
||||||
if((String) config.get("ec") != null) {
|
if((String) config.get("ec") != null) {
|
||||||
ec = setItemsToInventory(mapItemStackDeserialize((String) config.get("ec")), ec);
|
ec = setItemsToInventory(mapItemStackDeserialize((String) config.get("ec")), ec);
|
||||||
}
|
}
|
||||||
EnderChest ecc = new EnderChest(ec);
|
EnderChest ecc = new EnderChest(ec);
|
||||||
Storage storage = new Storage(ecc);
|
Storage storage = new Storage(ecc);
|
||||||
playerManager.getRaxenPlayer(player).setStorage(ec);
|
playerManager.getRaxenPlayer(player).setStorage(ec);
|
||||||
PlayerInventory inv = (PlayerInventory) Bukkit.createInventory(player, InventoryType.PLAYER);
|
PlayerInventory inv = (PlayerInventory) Bukkit.createInventory(player, InventoryType.PLAYER);
|
||||||
inv = setItemsToInventory(listItemStackDeserialize((String) config.getString("inv")), inv);
|
inv = setItemsToInventory(listItemStackDeserialize((String) config.getString("inv")), inv);
|
||||||
player.getInventory().setContents(inv.getContents());
|
player.getInventory().setContents(inv.getContents());
|
||||||
player.updateInventory();
|
player.updateInventory();
|
||||||
gq.unurled.raxen.components.entity.player.storages.Inventory invv = new gq.unurled.raxen.components.entity.player.storages.Inventory(inv);
|
me.unurled.raxen.components.entity.player.storages.Inventory invv = new me.unurled.raxen.components.entity.player.storages.Inventory(inv);
|
||||||
Inventories invvv = new Inventories(invv);
|
Inventories invvv = new Inventories(invv);
|
||||||
playerManager.getRaxenPlayer(player).setInventory(inv);
|
playerManager.getRaxenPlayer(player).setInventory(inv);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* saves player stuff
|
* saves player stuff
|
||||||
* @param player
|
* @param player
|
||||||
*/
|
*/
|
||||||
public void savePlayerConfig(@NotNull Player player) {
|
public void savePlayerConfig(@NotNull Player player) {
|
||||||
Attributes attributes = new Attributes(main);
|
Attributes attributes = new Attributes(main);
|
||||||
PlayerInventory inv = player.getInventory();
|
PlayerInventory inv = player.getInventory();
|
||||||
|
|
||||||
List<String> listInv = new ArrayList<String>();
|
List<String> listInv = new ArrayList<String>();
|
||||||
Integer reverse = 0;
|
Integer reverse = 0;
|
||||||
for(ItemStack it : inv) {
|
for(ItemStack it : inv) {
|
||||||
reverse = reverse + 1;
|
reverse = reverse + 1;
|
||||||
if(it != null && it.getType() != Material.AIR) {
|
if(it != null && it.getType() != Material.AIR) {
|
||||||
String s = Items.itemStackSerialize(it, reverse);
|
String s = Items.itemStackSerialize(it, reverse);
|
||||||
listInv.add(s);
|
listInv.add(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String invstr= Items.itemStackSer(inv);
|
String invstr= Items.itemStackSer(inv);
|
||||||
debug(main, "saving...");
|
debug(main, "saving...");
|
||||||
String storage = sto.getConfig().getString("storage");
|
String storage = sto.getConfig().getString("storage");
|
||||||
Integer finalReverse = reverse;
|
Integer finalReverse = reverse;
|
||||||
String finalInvstr = invstr;
|
String finalInvstr = invstr;
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
saveUsingMongoDB(player, attributes, finalInvstr, finalReverse);
|
saveUsingMongoDB(player, attributes, finalInvstr, finalReverse);
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(main);
|
}.runTaskAsynchronously(main);
|
||||||
debug(main, "using mongo");
|
debug(main, "using mongo");
|
||||||
if (storage == "MYSQL" || storage == "YML") {
|
if (storage == "MYSQL" || storage == "YML") {
|
||||||
String finalInvstr1 = invstr;
|
String finalInvstr1 = invstr;
|
||||||
Integer finalReverse1 = reverse;
|
Integer finalReverse1 = reverse;
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
saveUsingYml(player, attributes, finalInvstr1, finalReverse1);
|
saveUsingYml(player, attributes, finalInvstr1, finalReverse1);
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(main);
|
}.runTaskAsynchronously(main);
|
||||||
debug(main, "using yml");
|
debug(main, "using yml");
|
||||||
}
|
}
|
||||||
|
|
||||||
debug(main, "Player: " + player.getName() + " data successfully saved!");
|
debug(main, "Player: " + player.getName() + " data successfully saved!");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* load player stuff
|
* load player stuff
|
||||||
* @param player
|
* @param player
|
||||||
*/
|
*/
|
||||||
public void loadPlayerConfig(Player player) {
|
public void loadPlayerConfig(Player player) {
|
||||||
String st = StorageManager.getConfig().getString("storage");
|
String st = StorageManager.getConfig().getString("storage");
|
||||||
String value = "";
|
String value = "";
|
||||||
if (st.equals("MONGODB")) {
|
if (st.equals("MONGODB")) {
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
loadUsingMongoDB(player);
|
loadUsingMongoDB(player);
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(main);
|
}.runTaskAsynchronously(main);
|
||||||
value = "mongodb";
|
value = "mongodb";
|
||||||
} else {
|
} else {
|
||||||
value = "yml";
|
value = "yml";
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
loadUsingYml(player);
|
loadUsingYml(player);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.runTaskAsynchronously(main);
|
}.runTaskAsynchronously(main);
|
||||||
}
|
}
|
||||||
debug(main, "Player: " + player.getName() + " data successfully loaded using " + value);
|
debug(main, "Player: " + player.getName() + " data successfully loaded using " + value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.listener.entity;
|
package me.unurled.raxen.listener.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.attribute.Attribute;
|
import org.bukkit.attribute.Attribute;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
|
@ -15,7 +15,7 @@ import org.bukkit.event.entity.EntityDamageByEntityEvent;
|
||||||
import org.bukkit.persistence.PersistentDataContainer;
|
import org.bukkit.persistence.PersistentDataContainer;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class DamageEntity implements Listener {
|
public class DamageEntity implements Listener {
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ public class DamageEntity implements Listener {
|
||||||
}
|
}
|
||||||
if (e.getEntity() instanceof Player) {
|
if (e.getEntity() instanceof Player) {
|
||||||
Player playerVictim = (Player) e.getEntity();
|
Player playerVictim = (Player) e.getEntity();
|
||||||
gq.unurled.raxen.components.entity.player.attributes.Attributes attributes = new gq.unurled.raxen.components.entity.player.attributes.Attributes(main);
|
me.unurled.raxen.components.entity.player.attributes.Attributes attributes = new me.unurled.raxen.components.entity.player.attributes.Attributes(main);
|
||||||
defense = pm.getDefense().get(playerVictim);
|
defense = pm.getDefense().get(playerVictim);
|
||||||
health = pm.getHealth().get(playerVictim);
|
health = pm.getHealth().get(playerVictim);
|
||||||
itemDefense = pm.getItemDefense().get(playerVictim);
|
itemDefense = pm.getItemDefense().get(playerVictim);
|
||||||
|
@ -103,7 +103,7 @@ public class DamageEntity implements Listener {
|
||||||
}
|
}
|
||||||
if (e.getEntity() instanceof Player) {
|
if (e.getEntity() instanceof Player) {
|
||||||
Player playerVictim = (Player) e.getEntity();
|
Player playerVictim = (Player) e.getEntity();
|
||||||
gq.unurled.raxen.components.entity.player.attributes.Attributes attributes = new gq.unurled.raxen.components.entity.player.attributes.Attributes(main);
|
me.unurled.raxen.components.entity.player.attributes.Attributes attributes = new me.unurled.raxen.components.entity.player.attributes.Attributes(main);
|
||||||
pm.getHealth().set(playerVictim, health);
|
pm.getHealth().set(playerVictim, health);
|
||||||
playerVictim.setHealth(health.doubleValue()/5);
|
playerVictim.setHealth(health.doubleValue()/5);
|
||||||
} else {
|
} else {
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.listener.entity;
|
package me.unurled.raxen.listener.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
import gq.unurled.raxen.components.entity.other.EntityUtils;
|
import me.unurled.raxen.components.entity.other.EntityUtils;
|
||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -11,7 +11,7 @@ import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.entity.EntitySpawnEvent;
|
import org.bukkit.event.entity.EntitySpawnEvent;
|
||||||
import org.bukkit.persistence.PersistentDataType;
|
import org.bukkit.persistence.PersistentDataType;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class SpawnEvent implements Listener {
|
public class SpawnEvent implements Listener {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import com.destroystokyo.paper.event.player.PlayerArmorChangeEvent;
|
import com.destroystokyo.paper.event.player.PlayerArmorChangeEvent;
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.player.PlayerUtils;
|
import me.unurled.raxen.components.entity.player.PlayerUtils;
|
||||||
import gq.unurled.raxen.components.entity.player.attributes.Attributes;
|
import me.unurled.raxen.components.entity.player.attributes.Attributes;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.lootchest.GUI;
|
import me.unurled.raxen.components.lootchest.GUI;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
|
@ -1,7 +1,7 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -9,7 +9,7 @@ import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.inventory.InventoryCloseEvent;
|
import org.bukkit.event.inventory.InventoryCloseEvent;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.log;
|
import static me.unurled.raxen.utils.Utils.log;
|
||||||
|
|
||||||
public class CloseInventoryEvent implements Listener {
|
public class CloseInventoryEvent implements Listener {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.player.PlayerUtils;
|
import me.unurled.raxen.components.entity.player.PlayerUtils;
|
||||||
import gq.unurled.raxen.components.entity.player.attributes.Attributes;
|
import me.unurled.raxen.components.entity.player.attributes.Attributes;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
|
@ -1,43 +1,43 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.player.Scoreboard;
|
import me.unurled.raxen.components.entity.player.Scoreboard;
|
||||||
import gq.unurled.raxen.components.resourcepack.ResourcePack;
|
import me.unurled.raxen.components.resourcepack.ResourcePack;
|
||||||
import gq.unurled.raxen.config.PlayerConfig;
|
import me.unurled.raxen.config.PlayerConfig;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
|
||||||
public class JoinEvent implements Listener {
|
public class JoinEvent implements Listener {
|
||||||
|
|
||||||
private Raxen main;
|
private Raxen main;
|
||||||
private PlayerConfig playerConfig;
|
private PlayerConfig playerConfig;
|
||||||
private Scoreboard scoreboard;
|
private Scoreboard scoreboard;
|
||||||
private ResourcePack resourcePack;
|
private ResourcePack resourcePack;
|
||||||
private PlayerManager playerManager;
|
private PlayerManager playerManager;
|
||||||
|
|
||||||
public JoinEvent(Raxen main) {
|
public JoinEvent(Raxen main) {
|
||||||
this.main = main;
|
this.main = main;
|
||||||
this.playerConfig = main.getPlayerConfig();
|
this.playerConfig = main.getPlayerConfig();
|
||||||
this.scoreboard = new Scoreboard(main);
|
this.scoreboard = new Scoreboard(main);
|
||||||
this.resourcePack = main.getManager().getResourcePackManager().getResourcePack();
|
this.resourcePack = main.getManager().getResourcePackManager().getResourcePack();
|
||||||
this.playerManager = main.getManager().getPlayerManager();
|
this.playerManager = main.getManager().getPlayerManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* when player joins, load from config all stats
|
* when player joins, load from config all stats
|
||||||
* @param e
|
* @param e
|
||||||
*/
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void PlayerJoinEvent(PlayerJoinEvent e) {
|
public void PlayerJoinEvent(PlayerJoinEvent e) {
|
||||||
Player player = e.getPlayer();
|
Player player = e.getPlayer();
|
||||||
playerConfig.loadPlayerConfig(player);
|
playerConfig.loadPlayerConfig(player);
|
||||||
scoreboard.createScorebord(player);
|
scoreboard.createScorebord(player);
|
||||||
resourcePack.join(player);
|
resourcePack.join(player);
|
||||||
playerManager.getRaxenPlayer(player).isRaxenPlayer(true);
|
playerManager.getRaxenPlayer(player).isRaxenPlayer(true);
|
||||||
playerManager.registerActionBar(player);
|
playerManager.registerActionBar(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,36 +1,36 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.config.PlayerConfig;
|
import me.unurled.raxen.config.PlayerConfig;
|
||||||
import gq.unurled.raxen.manager.entity.PlayerManager;
|
import me.unurled.raxen.manager.entity.PlayerManager;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class LeaveEvent implements Listener {
|
public class LeaveEvent implements Listener {
|
||||||
|
|
||||||
private final PlayerConfig playerConfig;
|
private final PlayerConfig playerConfig;
|
||||||
private PlayerManager playerManager;
|
private PlayerManager playerManager;
|
||||||
|
|
||||||
public LeaveEvent(Raxen main) {
|
public LeaveEvent(Raxen main) {
|
||||||
this.playerConfig = main.getPlayerConfig();
|
this.playerConfig = main.getPlayerConfig();
|
||||||
this.playerManager = main.getManager().getPlayerManager();
|
this.playerManager = main.getManager().getPlayerManager();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* when player leaves, saves everything
|
* when player leaves, saves everything
|
||||||
* @param e
|
* @param e
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
*/
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void PlayerLeaveEvent(PlayerQuitEvent e) throws IOException {
|
public void PlayerLeaveEvent(PlayerQuitEvent e) throws IOException {
|
||||||
Player player = e.getPlayer();
|
Player player = e.getPlayer();
|
||||||
playerConfig.savePlayerConfig(player);
|
playerConfig.savePlayerConfig(player);
|
||||||
playerManager.getRaxenPlayer(player).isRaxenPlayer(false);
|
playerManager.getRaxenPlayer(player).isRaxenPlayer(false);
|
||||||
playerManager.unRegisterActionBar(player);
|
playerManager.unRegisterActionBar(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,14 +1,14 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.components.dungeons.Gate;
|
import me.unurled.raxen.components.dungeons.Gate;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.entity.EntityPortalEnterEvent;
|
import org.bukkit.event.entity.EntityPortalEnterEvent;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.DungeonUtils.isInRange;
|
import static me.unurled.raxen.utils.DungeonUtils.isInRange;
|
||||||
import static gq.unurled.raxen.utils.DungeonUtils.whichIsInRange;
|
import static me.unurled.raxen.utils.DungeonUtils.whichIsInRange;
|
||||||
|
|
||||||
public class PortalEvent implements Listener {
|
public class PortalEvent implements Listener {
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.server.ServerListPingEvent;
|
import org.bukkit.event.server.ServerListPingEvent;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.colorTextComp;
|
import static me.unurled.raxen.utils.Utils.colorTextComp;
|
||||||
|
|
||||||
public class ServerPingEvent implements Listener {
|
public class ServerPingEvent implements Listener {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.listener.player;
|
package me.unurled.raxen.listener.player;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.entity.player.Scoreboard;
|
import me.unurled.raxen.components.entity.player.Scoreboard;
|
||||||
import gq.unurled.raxen.utils.libs.Vault;
|
import me.unurled.raxen.utils.libs.Vault;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
|
@ -1,10 +1,10 @@
|
||||||
package gq.unurled.raxen.manager;
|
package me.unurled.raxen.manager;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.manager.entity.*;
|
|
||||||
import gq.unurled.raxen.manager.server.*;
|
|
||||||
import gq.unurled.raxen.utils.libs.Multiverse;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.manager.entity.*;
|
||||||
|
import me.unurled.raxen.manager.server.*;
|
||||||
|
import me.unurled.raxen.utils.libs.Multiverse;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Manager class, it enables all features of the plugin.
|
* Manager class, it enables all features of the plugin.
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.manager.entity;
|
package me.unurled.raxen.manager.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
@ -14,7 +14,7 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
|
|
||||||
public class EntityManager {
|
public class EntityManager {
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ public class EntityManager {
|
||||||
@Setter
|
@Setter
|
||||||
public List<EntityType> list = new ArrayList<>();
|
public List<EntityType> list = new ArrayList<>();
|
||||||
|
|
||||||
public HashMap<String, gq.unurled.raxen.components.entity.other.custom.Entity> entities = new HashMap<>();
|
public HashMap<String, me.unurled.raxen.components.entity.other.custom.Entity> entities = new HashMap<>();
|
||||||
|
|
||||||
public HashMap<UUID, Entity> livingEntities = new HashMap<>();
|
public HashMap<UUID, Entity> livingEntities = new HashMap<>();
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package gq.unurled.raxen.manager.entity;
|
package me.unurled.raxen.manager.entity;
|
||||||
|
|
||||||
import de.tr7zw.nbtapi.NBTItem;
|
import de.tr7zw.nbtapi.NBTItem;
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.items.NBT;
|
|
||||||
import gq.unurled.raxen.components.items.custom.Item;
|
|
||||||
import gq.unurled.raxen.utils.Utils;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.items.NBT;
|
||||||
|
import me.unurled.raxen.components.items.custom.Item;
|
||||||
|
import me.unurled.raxen.utils.Utils;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -23,7 +23,7 @@ import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.*;
|
import static me.unurled.raxen.utils.Utils.*;
|
||||||
|
|
||||||
public class ItemManager {
|
public class ItemManager {
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public class ItemManager {
|
||||||
* register manually all item in Raxen
|
* register manually all item in Raxen
|
||||||
*/
|
*/
|
||||||
private void registerItem() {
|
private void registerItem() {
|
||||||
gq.unurled.raxen.components.items.custom.List lisst = new gq.unurled.raxen.components.items.custom.List(main);
|
me.unurled.raxen.components.items.custom.List lisst = new me.unurled.raxen.components.items.custom.List(main);
|
||||||
for (Item items : lisst.getItems()) {
|
for (Item items : lisst.getItems()) {
|
||||||
items.registerItem(main);
|
items.registerItem(main);
|
||||||
}
|
}
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.manager.entity;
|
package me.unurled.raxen.manager.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.lootchest.loots.LootItem;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.lootchest.loots.LootItem;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package gq.unurled.raxen.manager.entity;
|
package me.unurled.raxen.manager.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.components.entity.Attributes.*;
|
|
||||||
import gq.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
|
||||||
import gq.unurled.raxen.components.entity.player.RaxenPlayer;
|
|
||||||
import gq.unurled.raxen.components.entity.player.classes.Class;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.components.entity.Attributes.*;
|
||||||
|
import me.unurled.raxen.components.entity.other.EntityNamespacedKey;
|
||||||
|
import me.unurled.raxen.components.entity.player.RaxenPlayer;
|
||||||
|
import me.unurled.raxen.components.entity.player.classes.Class;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scheduler.BukkitRunnable;
|
import org.bukkit.scheduler.BukkitRunnable;
|
||||||
|
@ -20,7 +20,7 @@ public class PlayerManager {
|
||||||
private HashMap<UUID, BukkitTask> actionBar = new HashMap<>();
|
private HashMap<UUID, BukkitTask> actionBar = new HashMap<>();
|
||||||
private HashMap<String, Class> classes = new HashMap<>();
|
private HashMap<String, Class> classes = new HashMap<>();
|
||||||
@Getter
|
@Getter
|
||||||
private HashMap<String, gq.unurled.raxen.components.entity.Attributes.Attribute> attribute = new HashMap<>();
|
private HashMap<String, me.unurled.raxen.components.entity.Attributes.Attribute> attribute = new HashMap<>();
|
||||||
|
|
||||||
// Attributes
|
// Attributes
|
||||||
private Defense defense;
|
private Defense defense;
|
||||||
|
@ -103,7 +103,7 @@ public class PlayerManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* register all Attributes in gq.unurled.raxen.components.entity.Attributes;
|
* register all Attributes in me.unurled.raxen.components.entity.Attributes;
|
||||||
*/
|
*/
|
||||||
public void registerAttributes() {
|
public void registerAttributes() {
|
||||||
EntityNamespacedKey key = new EntityNamespacedKey(main);
|
EntityNamespacedKey key = new EntityNamespacedKey(main);
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.manager.entity;
|
package me.unurled.raxen.manager.entity;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.utils.libs.MongoDB;
|
|
||||||
import gq.unurled.raxen.utils.libs.Mysql;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.utils.libs.MongoDB;
|
||||||
|
import me.unurled.raxen.utils.libs.Mysql;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.configuration.InvalidConfigurationException;
|
import org.bukkit.configuration.InvalidConfigurationException;
|
||||||
import org.bukkit.configuration.file.FileConfiguration;
|
import org.bukkit.configuration.file.FileConfiguration;
|
||||||
|
@ -14,8 +14,8 @@ import org.jetbrains.annotations.NotNull;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import static gq.unurled.raxen.utils.Utils.debug;
|
import static me.unurled.raxen.utils.Utils.debug;
|
||||||
import static gq.unurled.raxen.utils.Utils.error;
|
import static me.unurled.raxen.utils.Utils.error;
|
||||||
|
|
||||||
public class StorageManager {
|
public class StorageManager {
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.commands.RaxenCommand;
|
|
||||||
import gq.unurled.raxen.commands.admin.*;
|
|
||||||
import gq.unurled.raxen.commands.player.ClassCommand;
|
|
||||||
import gq.unurled.raxen.commands.player.MainGuiCommand;
|
|
||||||
import gq.unurled.raxen.commands.player.SkillsCommand;
|
|
||||||
import gq.unurled.raxen.commands.player.StorageCommand;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.commands.RaxenCommand;
|
||||||
|
import me.unurled.raxen.commands.admin.*;
|
||||||
|
import me.unurled.raxen.commands.player.ClassCommand;
|
||||||
|
import me.unurled.raxen.commands.player.MainGuiCommand;
|
||||||
|
import me.unurled.raxen.commands.player.SkillsCommand;
|
||||||
|
import me.unurled.raxen.commands.player.StorageCommand;
|
||||||
|
|
||||||
|
|
||||||
public class CommandManager {
|
public class CommandManager {
|
|
@ -1,9 +1,9 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import gq.unurled.raxen.components.dungeons.Dungeon;
|
import me.unurled.raxen.components.dungeons.Dungeon;
|
||||||
import gq.unurled.raxen.components.dungeons.Gate;
|
import me.unurled.raxen.components.dungeons.Gate;
|
||||||
import gq.unurled.raxen.components.dungeons.types.forest.ForestDungeon;
|
import me.unurled.raxen.components.dungeons.types.forest.ForestDungeon;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
|
@ -1,4 +1,4 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import org.bukkit.enchantments.Enchantment;
|
import org.bukkit.enchantments.Enchantment;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.utils.libs.*;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.utils.libs.*;
|
||||||
|
|
||||||
public class LibsManager {
|
public class LibsManager {
|
||||||
@Getter
|
@Getter
|
|
@ -1,11 +1,11 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import gq.unurled.raxen.Raxen;
|
|
||||||
import gq.unurled.raxen.listener.entity.DamageEntity;
|
|
||||||
import gq.unurled.raxen.listener.entity.SpawnEvent;
|
|
||||||
import gq.unurled.raxen.listener.player.*;
|
|
||||||
import gq.unurled.raxen.utils.Reload;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import me.unurled.raxen.Raxen;
|
||||||
|
import me.unurled.raxen.listener.entity.DamageEntity;
|
||||||
|
import me.unurled.raxen.listener.entity.SpawnEvent;
|
||||||
|
import me.unurled.raxen.listener.player.*;
|
||||||
|
import me.unurled.raxen.utils.Reload;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
|
|
||||||
public class ListenerManager {
|
public class ListenerManager {
|
|
@ -1,11 +1,11 @@
|
||||||
package gq.unurled.raxen.manager.server;
|
package me.unurled.raxen.manager.server;
|
||||||
|
|
||||||
import com.comphenix.protocol.PacketType;
|
import com.comphenix.protocol.PacketType;
|
||||||
import com.comphenix.protocol.events.ListenerPriority;
|
import com.comphenix.protocol.events.ListenerPriority;
|
||||||
import com.comphenix.protocol.events.PacketAdapter;
|
import com.comphenix.protocol.events.PacketAdapter;
|
||||||
import com.comphenix.protocol.events.PacketContainer;
|
import com.comphenix.protocol.events.PacketContainer;
|
||||||
import com.comphenix.protocol.events.PacketEvent;
|
import com.comphenix.protocol.events.PacketEvent;
|
||||||
import gq.unurled.raxen.Raxen;
|
import me.unurled.raxen.Raxen;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
public class ProtocolManager {
|
public class ProtocolManager {
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue