mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2024-11-14 13:13:32 +00:00
Migrates the entire package nomenclature to be more direct and straightforward. (#17)
Signed-off-by: Paul Reilly <pawereus@gmail.com>
This commit is contained in:
parent
e1a6b5e587
commit
21463c50fe
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.corvo;
|
package fns.corvo;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.patchwork.base.Patchwork;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
public class Corvo extends JavaPlugin
|
public class Corvo extends JavaPlugin
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.corvo.listener;
|
package fns.corvo.listener;
|
||||||
|
|
||||||
import io.papermc.paper.event.block.BlockBreakBlockEvent;
|
import io.papermc.paper.event.block.BlockBreakBlockEvent;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
@ -1,13 +1,13 @@
|
|||||||
package me.totalfreedom.datura;
|
package fns.datura;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.datura.features.CommandSpy;
|
||||||
import me.totalfreedom.datura.features.Fuckoff;
|
import fns.datura.features.Fuckoff;
|
||||||
import me.totalfreedom.datura.features.CommandSpy;
|
import fns.datura.punishment.Cager;
|
||||||
import me.totalfreedom.datura.punishment.Cager;
|
import fns.datura.punishment.Halter;
|
||||||
import me.totalfreedom.datura.punishment.Halter;
|
import fns.datura.punishment.Locker;
|
||||||
import me.totalfreedom.datura.punishment.Locker;
|
import fns.datura.sql.MySQL;
|
||||||
import me.totalfreedom.datura.sql.MySQL;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.service.SubscriptionProvider;
|
import fns.patchwork.service.SubscriptionProvider;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Base;
|
import fns.patchwork.command.annotation.Base;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
@ -19,15 +19,15 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.base.Shortcuts;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.base.Shortcuts;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
@ -1,15 +1,15 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.base.Shortcuts;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.base.Shortcuts;
|
||||||
import me.totalfreedom.command.annotation.Base;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.annotation.Base;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
@ -1,12 +1,12 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Base;
|
import fns.patchwork.command.annotation.Base;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import me.totalfreedom.utils.Tagged;
|
import fns.patchwork.utils.Tagged;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
@ -1,11 +1,10 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.command.annotation.Base;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Base;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import org.bukkit.command.CommandSender;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@ -24,7 +23,7 @@ public class CommandSpyCommand extends Commander
|
|||||||
*
|
*
|
||||||
* @param plugin The plugin which contains this command.
|
* @param plugin The plugin which contains this command.
|
||||||
*/
|
*/
|
||||||
public CommandSpyCommand(@NotNull JavaPlugin plugin)
|
public CommandSpyCommand(@NotNull final Datura plugin)
|
||||||
{
|
{
|
||||||
super(plugin);
|
super(plugin);
|
||||||
}
|
}
|
@ -1,10 +1,12 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.base.Shortcuts;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.base.Shortcuts;
|
||||||
import me.totalfreedom.command.annotation.*;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import org.bukkit.command.CommandSender;
|
import fns.patchwork.command.annotation.Info;
|
||||||
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
@ -26,7 +28,7 @@ public class FuckoffCommand extends Commander
|
|||||||
*
|
*
|
||||||
* @param plugin The plugin which contains this command.
|
* @param plugin The plugin which contains this command.
|
||||||
*/
|
*/
|
||||||
public FuckoffCommand(@NotNull JavaPlugin plugin)
|
public FuckoffCommand(@NotNull final JavaPlugin plugin)
|
||||||
{
|
{
|
||||||
super(plugin);
|
super(plugin);
|
||||||
}
|
}
|
@ -1,12 +1,12 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.base.Shortcuts;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.base.Shortcuts;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
@ -1,11 +1,11 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
@ -1,17 +1,17 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
|
import fns.datura.perms.PermissionNodeBuilder;
|
||||||
|
import fns.patchwork.base.Shortcuts;
|
||||||
|
import fns.patchwork.command.Commander;
|
||||||
|
import fns.patchwork.command.annotation.Completion;
|
||||||
|
import fns.patchwork.command.annotation.Info;
|
||||||
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
|
import fns.patchwork.security.Node;
|
||||||
|
import fns.patchwork.security.NodeType;
|
||||||
|
import fns.patchwork.security.PermissionHolder;
|
||||||
|
import fns.patchwork.user.User;
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
import me.totalfreedom.base.Shortcuts;
|
|
||||||
import me.totalfreedom.command.Commander;
|
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
|
||||||
import me.totalfreedom.command.annotation.Info;
|
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
|
||||||
import me.totalfreedom.datura.perms.PermissionNodeBuilder;
|
|
||||||
import me.totalfreedom.security.Node;
|
|
||||||
import me.totalfreedom.security.NodeType;
|
|
||||||
import me.totalfreedom.security.PermissionHolder;
|
|
||||||
import me.totalfreedom.user.User;
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
@ -1,10 +1,10 @@
|
|||||||
package me.totalfreedom.datura.cmd;
|
package fns.datura.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
import fns.patchwork.command.annotation.Completion;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
@ -1,7 +1,7 @@
|
|||||||
package me.totalfreedom.datura.event;
|
package fns.datura.event;
|
||||||
|
|
||||||
import me.totalfreedom.event.FEvent;
|
import fns.patchwork.event.FEvent;
|
||||||
import me.totalfreedom.user.UserData;
|
import fns.patchwork.user.UserData;
|
||||||
|
|
||||||
public class UserDataUpdateEvent extends FEvent
|
public class UserDataUpdateEvent extends FEvent
|
||||||
{
|
{
|
@ -1,5 +1,8 @@
|
|||||||
package me.totalfreedom.datura.features;
|
package fns.datura.features;
|
||||||
|
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -7,10 +10,6 @@ import org.bukkit.event.EventHandler;
|
|||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class CommandSpy implements Listener
|
public class CommandSpy implements Listener
|
||||||
{
|
{
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
package me.totalfreedom.datura.features;
|
package fns.datura.features;
|
||||||
|
|
||||||
import me.totalfreedom.service.Service;
|
import fns.patchwork.service.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.*;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
|
||||||
|
|
||||||
public class Fuckoff extends Service
|
public class Fuckoff extends Service
|
||||||
{
|
{
|
||||||
private final Map<UUID, Integer> players = new ConcurrentHashMap<>();
|
private final Map<UUID, Integer> players = new ConcurrentHashMap<>();
|
||||||
@ -30,7 +30,7 @@ public class Fuckoff extends Service
|
|||||||
@Override
|
@Override
|
||||||
public void tick()
|
public void tick()
|
||||||
{
|
{
|
||||||
for (Map.Entry<UUID, Integer> entry : players.entrySet())
|
for (final Map.Entry<UUID, Integer> entry : players.entrySet())
|
||||||
{
|
{
|
||||||
final var player = Bukkit.getPlayer(entry.getKey());
|
final var player = Bukkit.getPlayer(entry.getKey());
|
||||||
|
|
||||||
@ -48,12 +48,14 @@ public class Fuckoff extends Service
|
|||||||
{
|
{
|
||||||
Bukkit.getOnlinePlayers()
|
Bukkit.getOnlinePlayers()
|
||||||
.stream()
|
.stream()
|
||||||
.filter(onlinePlayer -> onlinePlayer.getLocation().distanceSquared(player.getLocation()) < (radius * radius))
|
.filter(onlinePlayer -> onlinePlayer.getLocation()
|
||||||
.forEach(onlinePlayer -> {
|
.clone()
|
||||||
onlinePlayer.setVelocity(
|
.distanceSquared(player.getLocation()) < Math.pow(radius, 2))
|
||||||
player.getLocation().toVector()
|
.forEach(onlinePlayer ->
|
||||||
.add(onlinePlayer.getLocation().toVector()).normalize().multiply(radius)
|
onlinePlayer.setVelocity(player.getLocation()
|
||||||
);
|
.toVector()
|
||||||
});
|
.add(onlinePlayer.getLocation().toVector())
|
||||||
|
.normalize()
|
||||||
|
.multiply(radius)));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package me.totalfreedom.datura.perms;
|
package fns.datura.perms;
|
||||||
|
|
||||||
import me.totalfreedom.security.Node;
|
import fns.patchwork.security.Node;
|
||||||
import me.totalfreedom.security.NodeType;
|
import fns.patchwork.security.NodeType;
|
||||||
|
|
||||||
public class DefaultNodes
|
public class DefaultNodes
|
||||||
{
|
{
|
@ -1,8 +1,12 @@
|
|||||||
package me.totalfreedom.datura.perms;
|
package fns.datura.perms;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.security.Group;
|
import fns.patchwork.security.Group;
|
||||||
import me.totalfreedom.security.Node;
|
import fns.patchwork.security.Node;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.permissions.Permission;
|
import org.bukkit.permissions.Permission;
|
||||||
import org.bukkit.permissions.PermissionAttachment;
|
import org.bukkit.permissions.PermissionAttachment;
|
||||||
@ -11,11 +15,6 @@ import org.bukkit.plugin.Plugin;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
public class FreedomGroup implements Group
|
public class FreedomGroup implements Group
|
||||||
{
|
{
|
||||||
private final Component name;
|
private final Component name;
|
@ -1,11 +1,16 @@
|
|||||||
package me.totalfreedom.datura.perms;
|
package fns.datura.perms;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.datura.Datura;
|
||||||
import me.totalfreedom.datura.Datura;
|
import fns.datura.user.SimpleUserData;
|
||||||
import me.totalfreedom.datura.user.SimpleUserData;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.security.Node;
|
import fns.patchwork.security.Node;
|
||||||
import me.totalfreedom.user.User;
|
import fns.patchwork.user.User;
|
||||||
import me.totalfreedom.user.UserData;
|
import fns.patchwork.user.UserData;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
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;
|
||||||
@ -16,12 +21,6 @@ import org.bukkit.plugin.Plugin;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The superinterface User extends PermissionHolder, which is an extension of
|
* The superinterface User extends PermissionHolder, which is an extension of
|
||||||
* {@link org.bukkit.permissions.Permissible}. This means that our permission data can be interchanged with other
|
* {@link org.bukkit.permissions.Permissible}. This means that our permission data can be interchanged with other
|
||||||
@ -33,7 +32,7 @@ public class FreedomUser implements User
|
|||||||
private final Set<Node> permissions;
|
private final Set<Node> permissions;
|
||||||
private final Map<Node, PermissionAttachment> bukkitAttachments = new HashMap<>();
|
private final Map<Node, PermissionAttachment> bukkitAttachments = new HashMap<>();
|
||||||
private final Component displayName;
|
private final Component displayName;
|
||||||
private final String NOT_ONLINE = "Player is not online";
|
private static final String NOT_ONLINE = "Player is not online";
|
||||||
private final UserData userData;
|
private final UserData userData;
|
||||||
|
|
||||||
public FreedomUser(final Player player)
|
public FreedomUser(final Player player)
|
||||||
@ -96,7 +95,8 @@ public class FreedomUser implements User
|
|||||||
@Override
|
@Override
|
||||||
public boolean addPermission(final Node node)
|
public boolean addPermission(final Node node)
|
||||||
{
|
{
|
||||||
final PermissionAttachment attachment = addAttachment(Patchwork.getInstance(), node.key(), node.value());
|
final boolean value = !node.isTemporary() || node.isExpired();
|
||||||
|
final PermissionAttachment attachment = addAttachment(Patchwork.getInstance(), node.key(), value);
|
||||||
bukkitAttachments.put(node, attachment);
|
bukkitAttachments.put(node, attachment);
|
||||||
return permissions().add(node);
|
return permissions().add(node);
|
||||||
}
|
}
|
@ -1,7 +1,7 @@
|
|||||||
package me.totalfreedom.datura.perms;
|
package fns.datura.perms;
|
||||||
|
|
||||||
import me.totalfreedom.security.Node;
|
import fns.patchwork.security.Node;
|
||||||
import me.totalfreedom.security.NodeType;
|
import fns.patchwork.security.NodeType;
|
||||||
import org.bukkit.permissions.Permission;
|
import org.bukkit.permissions.Permission;
|
||||||
import org.bukkit.permissions.PermissionDefault;
|
import org.bukkit.permissions.PermissionDefault;
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
package me.totalfreedom.datura.perms;
|
package fns.datura.perms;
|
||||||
|
|
||||||
import me.totalfreedom.security.Node;
|
import fns.patchwork.security.Node;
|
||||||
import me.totalfreedom.security.NodeBuilder;
|
import fns.patchwork.security.NodeBuilder;
|
||||||
import me.totalfreedom.security.NodeType;
|
import fns.patchwork.security.NodeType;
|
||||||
|
|
||||||
public class PermissionNodeBuilder implements NodeBuilder
|
public class PermissionNodeBuilder implements NodeBuilder
|
||||||
{
|
{
|
@ -1,17 +1,8 @@
|
|||||||
package me.totalfreedom.datura.punishment;
|
package fns.datura.punishment;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
|
||||||
import me.totalfreedom.service.Service;
|
|
||||||
import me.totalfreedom.utils.ShapeUtils;
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.Location;
|
|
||||||
import org.bukkit.Material;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
import org.bukkit.event.EventHandler;
|
|
||||||
import org.bukkit.event.Listener;
|
|
||||||
import org.bukkit.event.block.BlockBreakEvent;
|
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
|
||||||
|
|
||||||
|
import fns.patchwork.base.Patchwork;
|
||||||
|
import fns.patchwork.service.Service;
|
||||||
|
import fns.patchwork.utils.ShapeUtils;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
@ -20,6 +11,14 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.function.DoubleUnaryOperator;
|
import java.util.function.DoubleUnaryOperator;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.Location;
|
||||||
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.Listener;
|
||||||
|
import org.bukkit.event.block.BlockBreakEvent;
|
||||||
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
|
||||||
public class Cager extends Service
|
public class Cager extends Service
|
||||||
{
|
{
|
@ -1,12 +1,11 @@
|
|||||||
package me.totalfreedom.datura.punishment;
|
package fns.datura.punishment;
|
||||||
|
|
||||||
import org.bukkit.event.EventHandler;
|
|
||||||
import org.bukkit.event.Listener;
|
|
||||||
import org.bukkit.event.player.PlayerMoveEvent;
|
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
import org.bukkit.event.EventHandler;
|
||||||
|
import org.bukkit.event.Listener;
|
||||||
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
|
|
||||||
public class Halter implements Listener
|
public class Halter implements Listener
|
||||||
{
|
{
|
@ -1,18 +1,17 @@
|
|||||||
package me.totalfreedom.datura.punishment;
|
package fns.datura.punishment;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.service.Service;
|
import fns.patchwork.service.Service;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.SplittableRandom;
|
||||||
|
import java.util.UUID;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.InventoryCloseEvent;
|
import org.bukkit.event.inventory.InventoryCloseEvent;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.SplittableRandom;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class Locker extends Service
|
public class Locker extends Service
|
||||||
{
|
{
|
||||||
private final Set<UUID> lockedPlayers = new HashSet<>();
|
private final Set<UUID> lockedPlayers = new HashSet<>();
|
@ -1,9 +1,8 @@
|
|||||||
package me.totalfreedom.datura.sql;
|
package fns.datura.sql;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
|
||||||
import me.totalfreedom.sql.SQL;
|
|
||||||
import me.totalfreedom.utils.container.Identity;
|
|
||||||
|
|
||||||
|
import fns.patchwork.base.Patchwork;
|
||||||
|
import fns.patchwork.sql.SQL;
|
||||||
|
import fns.patchwork.utils.container.Identity;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.datura.sql;
|
package fns.datura.sql;
|
||||||
|
|
||||||
|
|
||||||
import com.google.errorprone.annotations.Immutable;
|
import com.google.errorprone.annotations.Immutable;
|
@ -1,7 +1,7 @@
|
|||||||
package me.totalfreedom.datura.user;
|
package fns.datura.user;
|
||||||
|
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.economy.EconomicEntityData;
|
import fns.patchwork.economy.EconomicEntityData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents the server's economy holder.
|
* Represents the server's economy holder.
|
@ -1,24 +1,23 @@
|
|||||||
package me.totalfreedom.datura.user;
|
package fns.datura.user;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.datura.event.UserDataUpdateEvent;
|
||||||
import me.totalfreedom.datura.event.UserDataUpdateEvent;
|
import fns.datura.perms.FreedomUser;
|
||||||
import me.totalfreedom.datura.perms.FreedomUser;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.display.adminchat.AdminChatFormat;
|
import fns.patchwork.display.adminchat.AdminChatFormat;
|
||||||
import me.totalfreedom.security.Group;
|
import fns.patchwork.security.Group;
|
||||||
import me.totalfreedom.sql.SQL;
|
import fns.patchwork.sql.SQL;
|
||||||
import me.totalfreedom.user.User;
|
import fns.patchwork.user.User;
|
||||||
import me.totalfreedom.user.UserData;
|
import fns.patchwork.user.UserData;
|
||||||
import me.totalfreedom.utils.logging.FreedomLogger;
|
import fns.patchwork.utils.logging.FreedomLogger;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
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.sql.SQLException;
|
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
|
||||||
|
|
||||||
public class SimpleUserData implements UserData
|
public class SimpleUserData implements UserData
|
||||||
{
|
{
|
||||||
private final UUID uuid;
|
private final UUID uuid;
|
@ -1,9 +1,9 @@
|
|||||||
package me.totalfreedom.fossil;
|
package fns.fossil;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.fossil.trail.Trailer;
|
||||||
import me.totalfreedom.base.Registration;
|
import fns.patchwork.base.Patchwork;
|
||||||
import me.totalfreedom.fossil.trail.Trailer;
|
import fns.patchwork.base.Registration;
|
||||||
import me.totalfreedom.service.SubscriptionProvider;
|
import fns.patchwork.service.SubscriptionProvider;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
public class Fossil extends JavaPlugin
|
public class Fossil extends JavaPlugin
|
@ -1,12 +1,11 @@
|
|||||||
package me.totalfreedom.fossil.bouncypads;
|
package fns.fossil.bouncypads;
|
||||||
|
|
||||||
import com.google.errorprone.annotations.Immutable;
|
import com.google.errorprone.annotations.Immutable;
|
||||||
|
import java.util.SplittableRandom;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
|
||||||
import java.util.SplittableRandom;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a bouncy pad. Has a velocity and a type.
|
* Represents a bouncy pad. Has a velocity and a type.
|
||||||
*/
|
*/
|
@ -1,7 +1,11 @@
|
|||||||
package me.totalfreedom.fossil.bouncypads;
|
package fns.fossil.bouncypads;
|
||||||
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
import fns.fossil.Fossil;
|
||||||
import me.totalfreedom.fossil.Fossil;
|
import fns.patchwork.base.Patchwork;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
|
import java.util.stream.Stream;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Tag;
|
import org.bukkit.Tag;
|
||||||
@ -12,11 +16,6 @@ import org.bukkit.event.Listener;
|
|||||||
import org.bukkit.event.player.PlayerMoveEvent;
|
import org.bukkit.event.player.PlayerMoveEvent;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds all the active pads for each player, and also manages player pad interaction.
|
* Holds all the active pads for each player, and also manages player pad interaction.
|
||||||
*/
|
*/
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.fossil.bouncypads;
|
package fns.fossil.bouncypads;
|
||||||
|
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
|
|
@ -19,13 +19,13 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package me.totalfreedom.fossil.cmd;
|
package fns.fossil.cmd;
|
||||||
|
|
||||||
import me.totalfreedom.command.Commander;
|
import fns.patchwork.command.Commander;
|
||||||
import me.totalfreedom.command.annotation.Base;
|
import fns.patchwork.command.annotation.Base;
|
||||||
import me.totalfreedom.command.annotation.Info;
|
import fns.patchwork.command.annotation.Info;
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
import me.totalfreedom.utils.kyori.FreedomMiniMessage;
|
import fns.patchwork.utils.kyori.FreedomMiniMessage;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -46,8 +46,10 @@ public class CakeCommand extends Commander
|
|||||||
@Base
|
@Base
|
||||||
public void broadcastCake(final CommandSender sender)
|
public void broadcastCake(final CommandSender sender)
|
||||||
{
|
{
|
||||||
Bukkit.broadcast(FreedomMiniMessage.deserialize(true,
|
Bukkit.getServer().sendMessage(FreedomMiniMessage.deserialize(true,
|
||||||
"<rainbow>But there's no sense crying over every mistake. You just keep on trying till you run out of " +
|
"<rainbow>But there's no sense crying over " +
|
||||||
|
"every mistake. You just keep on trying " +
|
||||||
|
"till you run out of " +
|
||||||
"cake.</rainbow>"));
|
"cake.</rainbow>"));
|
||||||
|
|
||||||
final ItemStack stack = new ItemStack(Material.CAKE, 1);
|
final ItemStack stack = new ItemStack(Material.CAKE, 1);
|
@ -1,9 +1,9 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.CompletedTransaction;
|
import fns.patchwork.economy.CompletedTransaction;
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.economy.Transaction;
|
import fns.patchwork.economy.Transaction;
|
||||||
import me.totalfreedom.economy.TransactionResult;
|
import fns.patchwork.economy.TransactionResult;
|
||||||
|
|
||||||
public class SimpleCompletedTransaction implements CompletedTransaction
|
public class SimpleCompletedTransaction implements CompletedTransaction
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.CompletedTransaction;
|
import fns.patchwork.economy.CompletedTransaction;
|
||||||
import me.totalfreedom.economy.MutableTransaction;
|
import fns.patchwork.economy.MutableTransaction;
|
||||||
import me.totalfreedom.economy.TransactionLogger;
|
import fns.patchwork.economy.TransactionLogger;
|
||||||
import me.totalfreedom.economy.Transactor;
|
import fns.patchwork.economy.Transactor;
|
||||||
|
|
||||||
public class SimpleLoggedTransactor implements Transactor
|
public class SimpleLoggedTransactor implements Transactor
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.economy.MutableTransaction;
|
import fns.patchwork.economy.MutableTransaction;
|
||||||
|
|
||||||
public class SimpleMutableTransaction extends SimpleTransaction implements MutableTransaction
|
public class SimpleMutableTransaction extends SimpleTransaction implements MutableTransaction
|
||||||
{
|
{
|
@ -1,8 +1,7 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
|
||||||
import me.totalfreedom.economy.Transaction;
|
|
||||||
|
|
||||||
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
|
import fns.patchwork.economy.Transaction;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
public class SimpleTransaction implements Transaction
|
public class SimpleTransaction implements Transaction
|
@ -1,11 +1,11 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.audience.MutableAudienceForwarder;
|
import fns.patchwork.audience.MutableAudienceForwarder;
|
||||||
import me.totalfreedom.economy.CompletedTransaction;
|
import fns.patchwork.economy.CompletedTransaction;
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.economy.TransactionLogger;
|
import fns.patchwork.economy.TransactionLogger;
|
||||||
import me.totalfreedom.economy.TransactionResult;
|
import fns.patchwork.economy.TransactionResult;
|
||||||
import me.totalfreedom.utils.logging.FreedomLogger;
|
import fns.patchwork.utils.logging.FreedomLogger;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
|
||||||
public class SimpleTransactionLogger implements TransactionLogger
|
public class SimpleTransactionLogger implements TransactionLogger
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.TransactionResult;
|
import fns.patchwork.economy.TransactionResult;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
|
|
||||||
@ -15,20 +15,20 @@ public class SimpleTransactionResult implements TransactionResult
|
|||||||
"The source has an insufficient balance to carry out this transaction.", false);
|
"The source has an insufficient balance to carry out this transaction.", false);
|
||||||
private final String message;
|
private final String message;
|
||||||
private final Component component;
|
private final Component component;
|
||||||
private final boolean successful;
|
private final boolean isSuccessful;
|
||||||
|
|
||||||
public SimpleTransactionResult(final String message, final boolean successful)
|
public SimpleTransactionResult(final String message, final boolean isSuccessful)
|
||||||
{
|
{
|
||||||
this(message, Component.text(message, successful
|
this(message, Component.text(message, isSuccessful
|
||||||
? NamedTextColor.GREEN
|
? NamedTextColor.GREEN
|
||||||
: NamedTextColor.RED), successful);
|
: NamedTextColor.RED), isSuccessful);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleTransactionResult(final String message, final Component component, final boolean successful)
|
public SimpleTransactionResult(final String message, final Component component, final boolean isSuccessful)
|
||||||
{
|
{
|
||||||
this.message = message;
|
this.message = message;
|
||||||
this.component = component;
|
this.component = component;
|
||||||
this.successful = successful;
|
this.isSuccessful = isSuccessful;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -40,7 +40,7 @@ public class SimpleTransactionResult implements TransactionResult
|
|||||||
@Override
|
@Override
|
||||||
public boolean isSuccessful()
|
public boolean isSuccessful()
|
||||||
{
|
{
|
||||||
return successful;
|
return isSuccessful;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -1,10 +1,10 @@
|
|||||||
package me.totalfreedom.fossil.economy;
|
package fns.fossil.economy;
|
||||||
|
|
||||||
import me.totalfreedom.economy.CompletedTransaction;
|
import fns.patchwork.economy.CompletedTransaction;
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.economy.EconomicEntityData;
|
import fns.patchwork.economy.EconomicEntityData;
|
||||||
import me.totalfreedom.economy.MutableTransaction;
|
import fns.patchwork.economy.MutableTransaction;
|
||||||
import me.totalfreedom.economy.Transactor;
|
import fns.patchwork.economy.Transactor;
|
||||||
|
|
||||||
public class SimpleTransactor implements Transactor
|
public class SimpleTransactor implements Transactor
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.fossil.items;
|
package fns.fossil.items;
|
||||||
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.fossil.items;
|
package fns.fossil.items;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.fossil.items;
|
package fns.fossil.items;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
@ -1,15 +1,13 @@
|
|||||||
package me.totalfreedom.fossil.reactions;
|
package fns.fossil.reactions;
|
||||||
|
|
||||||
import me.totalfreedom.display.BossBarDisplay;
|
import fns.patchwork.display.BossBarDisplay;
|
||||||
import me.totalfreedom.economy.EconomicEntity;
|
import fns.patchwork.economy.EconomicEntity;
|
||||||
import me.totalfreedom.shop.Reaction;
|
import fns.patchwork.shop.Reaction;
|
||||||
import me.totalfreedom.shop.ReactionType;
|
import fns.patchwork.shop.ReactionType;
|
||||||
|
import java.util.SplittableRandom;
|
||||||
import net.kyori.adventure.audience.Audience;
|
import net.kyori.adventure.audience.Audience;
|
||||||
import net.kyori.adventure.bossbar.BossBar;
|
import net.kyori.adventure.bossbar.BossBar;
|
||||||
|
|
||||||
import java.util.SplittableRandom;
|
|
||||||
import java.util.function.Consumer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a single chat reaction that can be performed by a player.
|
* Represents a single chat reaction that can be performed by a player.
|
||||||
*/
|
*/
|
||||||
@ -29,12 +27,6 @@ public final class CopyCatReaction extends Reaction
|
|||||||
return reward;
|
return reward;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onReact(final Consumer<EconomicEntity> entity)
|
|
||||||
{
|
|
||||||
entity.accept(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void display(final Audience audience)
|
public void display(final Audience audience)
|
||||||
{
|
{
|
||||||
@ -44,6 +36,12 @@ public final class CopyCatReaction extends Reaction
|
|||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onReact(final EconomicEntity entity)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
public String getRandomCharacterString()
|
public String getRandomCharacterString()
|
||||||
{
|
{
|
||||||
final SplittableRandom random = new SplittableRandom();
|
final SplittableRandom random = new SplittableRandom();
|
5
Fossil/src/main/java/fns/fossil/shop/Shoppe.java
Normal file
5
Fossil/src/main/java/fns/fossil/shop/Shoppe.java
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package fns.fossil.shop;
|
||||||
|
|
||||||
|
public class Shoppe
|
||||||
|
{
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.shop.menus;
|
package fns.fossil.shop.menus;
|
||||||
|
|
||||||
import me.totalfreedom.display.AbstractMenu;
|
import fns.patchwork.display.AbstractMenu;
|
||||||
|
|
||||||
public final class MainMenu extends AbstractMenu
|
public final class MainMenu extends AbstractMenu
|
||||||
{
|
{
|
@ -1,8 +1,7 @@
|
|||||||
package me.totalfreedom.fossil.trail;
|
package fns.fossil.trail;
|
||||||
|
|
||||||
import me.totalfreedom.particle.Trail;
|
|
||||||
import me.totalfreedom.service.Service;
|
|
||||||
|
|
||||||
|
import fns.patchwork.particle.Trail;
|
||||||
|
import fns.patchwork.service.Service;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Particle;
|
import org.bukkit.Particle;
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
@ -1,14 +1,13 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
import me.totalfreedom.utils.InterpolationUtils;
|
import fns.patchwork.utils.InterpolationUtils;
|
||||||
|
import java.util.Iterator;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Particle;
|
import org.bukkit.Particle;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
public final class RainbowTrail extends SimpleTrail
|
public final class RainbowTrail extends SimpleTrail
|
||||||
{
|
{
|
||||||
private Iterator<Color> currentColor;
|
private Iterator<Color> currentColor;
|
@ -1,7 +1,9 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.Trail;
|
import fns.patchwork.particle.Trail;
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
@ -9,9 +11,6 @@ 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.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public abstract class SimpleTrail implements Trail
|
public abstract class SimpleTrail implements Trail
|
||||||
{
|
{
|
||||||
private final UUID associatedPlayerUUID;
|
private final UUID associatedPlayerUUID;
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import me.totalfreedom.particle.TrailType;
|
import fns.patchwork.particle.TrailType;
|
||||||
import org.bukkit.Color;
|
import org.bukkit.Color;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Particle;
|
import org.bukkit.Particle;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.fossil.trail.types;
|
package fns.fossil.trail.types;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
package me.totalfreedom.fossil.shop;
|
|
||||||
|
|
||||||
public class Shoppe
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
package me.totalfreedom.api;
|
package fns.patchwork.api;
|
||||||
|
|
||||||
import me.totalfreedom.provider.ContextProvider;
|
import fns.patchwork.provider.ContextProvider;
|
||||||
|
import java.util.function.Function;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -12,8 +13,6 @@ import org.bukkit.event.block.Action;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.function.Function;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an object context. This class is a simple generic type wrapper that can be used to ensure data types. This
|
* Represents an object context. This class is a simple generic type wrapper that can be used to ensure data types. This
|
||||||
* class is also used to provide a simple way to map data types.
|
* class is also used to provide a simple way to map data types.
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.api;
|
package fns.patchwork.api;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interpolates a range of values and returns the results in a {@link Double} array.
|
* Interpolates a range of values and returns the results in a {@link Double} array.
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.api;
|
package fns.patchwork.api;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface represents a Serializable object. Objects which require custom serialization and cannot simply
|
* This interface represents a Serializable object. Objects which require custom serialization and cannot simply
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.audience;
|
package fns.patchwork.audience;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
@ -1,9 +1,9 @@
|
|||||||
package me.totalfreedom.base;
|
package fns.patchwork.base;
|
||||||
|
|
||||||
import me.totalfreedom.display.adminchat.AdminChatDisplay;
|
import fns.patchwork.display.adminchat.AdminChatDisplay;
|
||||||
import me.totalfreedom.event.EventBus;
|
import fns.patchwork.event.EventBus;
|
||||||
import me.totalfreedom.service.FreedomExecutor;
|
import fns.patchwork.service.FreedomExecutor;
|
||||||
import me.totalfreedom.service.SubscriptionProvider;
|
import fns.patchwork.service.SubscriptionProvider;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
package me.totalfreedom.base;
|
package fns.patchwork.base;
|
||||||
|
|
||||||
import me.totalfreedom.data.ConfigRegistry;
|
import fns.patchwork.data.ConfigRegistry;
|
||||||
import me.totalfreedom.data.EventRegistry;
|
import fns.patchwork.data.EventRegistry;
|
||||||
import me.totalfreedom.data.GroupRegistry;
|
import fns.patchwork.data.GroupRegistry;
|
||||||
import me.totalfreedom.data.ModuleRegistry;
|
import fns.patchwork.data.ModuleRegistry;
|
||||||
import me.totalfreedom.data.ServiceTaskRegistry;
|
import fns.patchwork.data.ServiceTaskRegistry;
|
||||||
import me.totalfreedom.data.UserRegistry;
|
import fns.patchwork.data.UserRegistry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is a holder for each registry in the data package.
|
* This class is a holder for each registry in the data package.
|
@ -1,7 +1,6 @@
|
|||||||
package me.totalfreedom.base;
|
package fns.patchwork.base;
|
||||||
|
|
||||||
import me.totalfreedom.api.Context;
|
import fns.patchwork.user.User;
|
||||||
import me.totalfreedom.user.User;
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
@ -1,13 +1,13 @@
|
|||||||
package me.totalfreedom.command;
|
package fns.patchwork.command;
|
||||||
|
|
||||||
|
import fns.patchwork.command.annotation.Completion;
|
||||||
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
|
import fns.patchwork.provider.ContextProvider;
|
||||||
|
import fns.patchwork.utils.logging.FreedomLogger;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
|
||||||
import me.totalfreedom.provider.ContextProvider;
|
|
||||||
import me.totalfreedom.utils.logging.FreedomLogger;
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command;
|
package fns.patchwork.command;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.CommandMap;
|
import org.bukkit.command.CommandMap;
|
@ -1,14 +1,10 @@
|
|||||||
package me.totalfreedom.command;
|
package fns.patchwork.command;
|
||||||
|
|
||||||
import me.totalfreedom.command.annotation.Base;
|
|
||||||
import me.totalfreedom.command.annotation.Completion;
|
|
||||||
import me.totalfreedom.command.annotation.Info;
|
|
||||||
import me.totalfreedom.command.annotation.Permissive;
|
|
||||||
import me.totalfreedom.command.annotation.Subcommand;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
|
import fns.patchwork.command.annotation.Base;
|
||||||
|
import fns.patchwork.command.annotation.Completion;
|
||||||
|
import fns.patchwork.command.annotation.Info;
|
||||||
|
import fns.patchwork.command.annotation.Permissive;
|
||||||
|
import fns.patchwork.command.annotation.Subcommand;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -16,6 +12,9 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the base command class which should be extended when creating a new command. Commands must be annotated with
|
* This is the base command class which should be extended when creating a new command. Commands must be annotated with
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Repeatable;
|
import java.lang.annotation.Repeatable;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,8 +1,7 @@
|
|||||||
package me.totalfreedom.command.annotation;
|
package fns.patchwork.command.annotation;
|
||||||
|
|
||||||
import me.totalfreedom.command.CommandHandler;
|
|
||||||
import me.totalfreedom.provider.ContextProvider;
|
|
||||||
|
|
||||||
|
import fns.patchwork.command.CommandHandler;
|
||||||
|
import fns.patchwork.provider.ContextProvider;
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
import java.lang.annotation.RetentionPolicy;
|
import java.lang.annotation.RetentionPolicy;
|
@ -1,8 +1,7 @@
|
|||||||
package me.totalfreedom.config;
|
package fns.patchwork.config;
|
||||||
|
|
||||||
import me.totalfreedom.api.Context;
|
|
||||||
import me.totalfreedom.provider.ContextProvider;
|
|
||||||
|
|
||||||
|
import fns.patchwork.api.Context;
|
||||||
|
import fns.patchwork.provider.ContextProvider;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.config;
|
package fns.patchwork.config;
|
||||||
|
|
||||||
public final class YamlWrapper
|
public final class YamlWrapper
|
||||||
{
|
{
|
@ -1,7 +1,6 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.config.Configuration;
|
|
||||||
|
|
||||||
|
import fns.patchwork.config.Configuration;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -1,8 +1,7 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.event.FEvent;
|
|
||||||
import me.totalfreedom.provider.EventProvider;
|
|
||||||
|
|
||||||
|
import fns.patchwork.event.FEvent;
|
||||||
|
import fns.patchwork.provider.EventProvider;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -1,10 +1,9 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.security.Group;
|
|
||||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
|
||||||
|
|
||||||
|
import fns.patchwork.security.Group;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A registry for {@link Group}s.
|
* A registry for {@link Group}s.
|
@ -1,10 +1,9 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.provider.ModuleProvider;
|
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
|
||||||
|
|
||||||
|
import fns.patchwork.provider.ModuleProvider;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A registry for modules.
|
* A registry for modules.
|
@ -1,14 +1,13 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.service.Service;
|
|
||||||
import me.totalfreedom.service.ServiceSubscription;
|
|
||||||
import me.totalfreedom.service.SubscriptionProvider;
|
|
||||||
import me.totalfreedom.service.Task;
|
|
||||||
import me.totalfreedom.service.TaskSubscription;
|
|
||||||
import org.jetbrains.annotations.Nullable;
|
|
||||||
|
|
||||||
|
import fns.patchwork.service.Service;
|
||||||
|
import fns.patchwork.service.ServiceSubscription;
|
||||||
|
import fns.patchwork.service.SubscriptionProvider;
|
||||||
|
import fns.patchwork.service.Task;
|
||||||
|
import fns.patchwork.service.TaskSubscription;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A registry for all services and tasks registered with Patchwork.
|
* A registry for all services and tasks registered with Patchwork.
|
@ -1,11 +1,10 @@
|
|||||||
package me.totalfreedom.data;
|
package fns.patchwork.data;
|
||||||
|
|
||||||
import me.totalfreedom.user.User;
|
|
||||||
import me.totalfreedom.user.UserData;
|
|
||||||
import org.bukkit.entity.Player;
|
|
||||||
|
|
||||||
|
import fns.patchwork.user.User;
|
||||||
|
import fns.patchwork.user.UserData;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A registry for {@link UserData} objects.
|
* A registry for {@link UserData} objects.
|
@ -1,5 +1,10 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
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;
|
||||||
@ -9,12 +14,6 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a menu that can be opened by a player.
|
* Represents a menu that can be opened by a player.
|
||||||
*/
|
*/
|
@ -1,5 +1,8 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
import net.kyori.adventure.audience.Audience;
|
import net.kyori.adventure.audience.Audience;
|
||||||
import net.kyori.adventure.audience.ForwardingAudience;
|
import net.kyori.adventure.audience.ForwardingAudience;
|
||||||
import net.kyori.adventure.bossbar.BossBar;
|
import net.kyori.adventure.bossbar.BossBar;
|
||||||
@ -7,10 +10,6 @@ import net.kyori.adventure.text.Component;
|
|||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
import org.jetbrains.annotations.Range;
|
import org.jetbrains.annotations.Range;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is a wrapper for {@link BossBar} objects. It provides some handy methods for changing the boss bar's
|
* This class is a wrapper for {@link BossBar} objects. It provides some handy methods for changing the boss bar's
|
||||||
* properties, displaying the bar to {@link Audience}s, and a {@link BossBarBuilder} to easily create new boss bars.
|
* properties, displaying the bar to {@link Audience}s, and a {@link BossBarBuilder} to easily create new boss bars.
|
@ -1,9 +1,8 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
import me.totalfreedom.service.Task;
|
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
|
|
||||||
|
import fns.patchwork.service.Task;
|
||||||
import java.time.Duration;
|
import java.time.Duration;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
|
||||||
public class BossBarTimer extends Task
|
public class BossBarTimer extends Task
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
@ -1,5 +1,9 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ListIterator;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.HumanEntity;
|
import org.bukkit.entity.HumanEntity;
|
||||||
@ -10,11 +14,6 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.ListIterator;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class that represents an inventory that can be displayed to players. This class also represents the inventory
|
* A class that represents an inventory that can be displayed to players. This class also represents the inventory
|
||||||
* holder which contains the inventory.
|
* holder which contains the inventory.
|
@ -1,6 +1,6 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
import me.totalfreedom.utils.kyori.FreedomAdventure;
|
import fns.patchwork.utils.kyori.FreedomAdventure;
|
||||||
import org.bukkit.entity.HumanEntity;
|
import org.bukkit.entity.HumanEntity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.InventoryType;
|
import org.bukkit.event.inventory.InventoryType;
|
@ -1,13 +1,12 @@
|
|||||||
package me.totalfreedom.display;
|
package fns.patchwork.display;
|
||||||
|
|
||||||
|
import java.time.Duration;
|
||||||
import net.kyori.adventure.audience.Audience;
|
import net.kyori.adventure.audience.Audience;
|
||||||
import net.kyori.adventure.audience.ForwardingAudience;
|
import net.kyori.adventure.audience.ForwardingAudience;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
||||||
import net.kyori.adventure.title.Title;
|
import net.kyori.adventure.title.Title;
|
||||||
|
|
||||||
import java.time.Duration;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A wrapper class for {@link Title}s that allows for easy display to an {@link Audience}.
|
* A wrapper class for {@link Title}s that allows for easy display to an {@link Audience}.
|
||||||
*/
|
*/
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.display.adminchat;
|
package fns.patchwork.display.adminchat;
|
||||||
|
|
||||||
import net.kyori.adventure.text.format.NamedTextColor;
|
import net.kyori.adventure.text.format.NamedTextColor;
|
||||||
import net.kyori.adventure.text.format.TextColor;
|
import net.kyori.adventure.text.format.TextColor;
|
@ -1,10 +1,15 @@
|
|||||||
package me.totalfreedom.display.adminchat;
|
package fns.patchwork.display.adminchat;
|
||||||
|
|
||||||
|
import fns.patchwork.base.Patchwork;
|
||||||
|
import fns.patchwork.base.Shortcuts;
|
||||||
|
import fns.patchwork.security.Groups;
|
||||||
|
import fns.patchwork.user.UserData;
|
||||||
import io.papermc.paper.event.player.AsyncChatEvent;
|
import io.papermc.paper.event.player.AsyncChatEvent;
|
||||||
import me.totalfreedom.base.Patchwork;
|
import java.util.HashMap;
|
||||||
import me.totalfreedom.base.Shortcuts;
|
import java.util.HashSet;
|
||||||
import me.totalfreedom.security.Groups;
|
import java.util.Map;
|
||||||
import me.totalfreedom.user.UserData;
|
import java.util.Set;
|
||||||
|
import java.util.UUID;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -13,12 +18,6 @@ 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;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
public class AdminChatDisplay
|
public class AdminChatDisplay
|
||||||
{
|
{
|
||||||
protected static final String ACPERM = "patchwork.adminchat";
|
protected static final String ACPERM = "patchwork.adminchat";
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.display.adminchat;
|
package fns.patchwork.display.adminchat;
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.TextComponent;
|
import net.kyori.adventure.text.TextComponent;
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents an immutable transaction that has been fully handled by a {@link Transactor} instance
|
* Represents an immutable transaction that has been fully handled by a {@link Transactor} instance
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An entity that is able to transfer sums of currency between other {@link EconomicEntity}
|
* An entity that is able to transfer sums of currency between other {@link EconomicEntity}
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metadata associated with a {@link EconomicEntity}
|
* Metadata associated with a {@link EconomicEntity}
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A transaction that can be changed.
|
* A transaction that can be changed.
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class that denotes the transfer of currency between two EconomicEntity instances.
|
* A class that denotes the transfer of currency between two EconomicEntity instances.
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class that intercepts transactions after they are completed and logs them to a data point
|
* A class that intercepts transactions after they are completed and logs them to a data point
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.economy;
|
package fns.patchwork.economy;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class that implements the completion of transactions.
|
* A class that implements the completion of transactions.
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.event;
|
package fns.patchwork.event;
|
||||||
|
|
||||||
@FunctionalInterface
|
@FunctionalInterface
|
||||||
public interface Callback<T extends FEvent>
|
public interface Callback<T extends FEvent>
|
@ -1,9 +1,8 @@
|
|||||||
package me.totalfreedom.event;
|
package fns.patchwork.event;
|
||||||
|
|
||||||
import me.totalfreedom.api.Context;
|
|
||||||
import me.totalfreedom.base.Patchwork;
|
|
||||||
import me.totalfreedom.service.Service;
|
|
||||||
|
|
||||||
|
import fns.patchwork.api.Context;
|
||||||
|
import fns.patchwork.base.Patchwork;
|
||||||
|
import fns.patchwork.service.Service;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package me.totalfreedom.event;
|
package fns.patchwork.event;
|
||||||
|
|
||||||
public record EventSubscription<T extends FEvent>(T event, Callback<T> callback)
|
public record EventSubscription<T extends FEvent>(T event, Callback<T> callback)
|
||||||
{
|
{
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user