Skip to content

Commit

Permalink
Revamped from Praxi to Practice
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Feb 20, 2024
1 parent cd419e5 commit 24fdd47
Show file tree
Hide file tree
Showing 217 changed files with 1,060 additions and 1,057 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Praxi
# Practice
> [!IMPORTANT]
> To use **Praxi** your server must be running on a 1.8 server!
> To use **Practice** your server must be running on a 1.8 server!
The most configurable, efficient, and extensive practice plugin.

Expand All @@ -13,16 +13,17 @@ The most configurable, efficient, and extensive practice plugin.
![image](https://github.com/Devlrxxh/practice/assets/125221056/054966cd-1603-4e9e-9bc2-800e9538849d)

# Placeholders
- ``%praxi_lb_<kit-name>_<up-to-10>_name%`` | Returns Player's Name in position
- ``%practice_lb_<kit-name>_<up-to-10>_name%`` | Returns Player's Name in position

- ``%praxi_lb_<kit-name>_<up-to-10>_elo%`` | Returns Player's ELO in position
- ``%practice_lb_<kit-name>_<up-to-10>_elo%`` | Returns Player's ELO in position

- ``%praxi_leaderboards_update%`` | Returns time left till leaderboard reload
- ``%practice_leaderboards_update%`` | Returns time left till leaderboard reload

# Credits
### [Funkyranveer - Praxi without dependencies](https://github.com/funkyranveer/practice-nodependents)
### Joeleoli - Made practice
### Joeleoli - Made praxi

# TODO
- ~~Add Stats Menu~~
- Add Boxing
- ~~Add Boxing~~
- ~~Add Leaderboards~~
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>me.funky</groupId>
<groupId>me.lrxh</groupId>
<artifactId>practice</artifactId>
<version>1.0-SNAPSHOT</version>

Expand Down Expand Up @@ -121,11 +121,11 @@
<relocations>
<relocation>
<pattern>co.aikar.commands</pattern>
<shadedPattern>me.funky.acf</shadedPattern>
<shadedPattern>me.lrxh.acf</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.funky.bstats</shadedPattern>
<shadedPattern>me.lrxh.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package me.funky.praxi;
package me.lrxh.practice;

import lombok.Getter;
import me.funky.praxi.match.Match;
import me.funky.praxi.queue.Queue;
import me.funky.praxi.queue.QueueProfile;
import me.lrxh.practice.match.Match;
import me.lrxh.practice.queue.Queue;
import me.lrxh.practice.queue.QueueProfile;

import java.util.ArrayList;
import java.util.LinkedList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.funky.praxi;
package me.lrxh.practice;

import lombok.AllArgsConstructor;
import me.funky.praxi.util.PlaceholderUtil;
import me.lrxh.practice.util.PlaceholderUtil;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.funky.praxi;
package me.lrxh.practice;

import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import me.funky.praxi.leaderboards.Leaderboard;
import me.funky.praxi.leaderboards.PlayerElo;
import me.funky.praxi.profile.Profile;
import me.funky.praxi.util.TimeUtil;
import me.lrxh.practice.leaderboards.Leaderboard;
import me.lrxh.practice.leaderboards.PlayerElo;
import me.lrxh.practice.profile.Profile;
import me.lrxh.practice.util.TimeUtil;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi;
package me.lrxh.practice;

import co.aikar.commands.BukkitCommandCompletionContext;
import co.aikar.commands.CommandCompletions;
Expand All @@ -8,53 +8,53 @@
import com.mongodb.client.MongoClients;
import com.mongodb.client.MongoDatabase;
import lombok.Getter;
import me.funky.praxi.arena.*;
import me.funky.praxi.arena.command.ArenaCommand;
import me.funky.praxi.commands.admin.general.MainCommand;
import me.funky.praxi.commands.donater.FlyCommand;
import me.funky.praxi.commands.event.map.*;
import me.funky.praxi.commands.event.user.HostCommand;
import me.funky.praxi.commands.event.vote.EventMapVoteCommand;
import me.funky.praxi.commands.user.PingCommand;
import me.funky.praxi.commands.user.StatsCommand;
import me.funky.praxi.commands.user.duels.DuelAcceptCommand;
import me.funky.praxi.commands.user.duels.DuelCommand;
import me.funky.praxi.commands.user.duels.RematchCommand;
import me.funky.praxi.commands.user.match.SpectateCommand;
import me.funky.praxi.commands.user.match.StopSpectatingCommand;
import me.funky.praxi.commands.user.match.ViewInventoryCommand;
import me.funky.praxi.commands.user.party.*;
import me.funky.praxi.essentials.Essentials;
import me.funky.praxi.event.Event;
import me.funky.praxi.event.EventTypeAdapter;
import me.funky.praxi.event.game.EventGameListener;
import me.funky.praxi.event.game.map.EventGameMap;
import me.funky.praxi.event.game.map.EventGameMapTypeAdapter;
import me.funky.praxi.kit.Kit;
import me.funky.praxi.kit.KitEditorListener;
import me.funky.praxi.kit.KitTypeAdapter;
import me.funky.praxi.kit.command.KitCommand;
import me.funky.praxi.leaderboards.LeaderboardThread;
import me.funky.praxi.leaderboards.LeaderboardsCommand;
import me.funky.praxi.match.Match;
import me.funky.praxi.match.MatchListener;
import me.funky.praxi.party.Party;
import me.funky.praxi.party.PartyListener;
import me.funky.praxi.profile.Profile;
import me.funky.praxi.profile.ProfileListener;
import me.funky.praxi.profile.hotbar.Hotbar;
import me.funky.praxi.queue.QueueListener;
import me.funky.praxi.queue.QueueThread;
import me.funky.praxi.scoreboard.ScoreboardAdapter;
import me.funky.praxi.setting.ProfileSettingsCommand;
import me.funky.praxi.setting.SettingsCommand;
import me.funky.praxi.util.CC;
import me.funky.praxi.util.Console;
import me.funky.praxi.util.InventoryUtil;
import me.funky.praxi.util.assemble.Assemble;
import me.funky.praxi.util.command.Honcho;
import me.funky.praxi.util.config.BasicConfigurationFile;
import me.funky.praxi.util.menu.MenuListener;
import me.lrxh.practice.arena.*;
import me.lrxh.practice.arena.command.ArenaCommand;
import me.lrxh.practice.commands.admin.general.MainCommand;
import me.lrxh.practice.commands.donater.FlyCommand;
import me.lrxh.practice.commands.event.map.*;
import me.lrxh.practice.commands.event.user.HostCommand;
import me.lrxh.practice.commands.event.vote.EventMapVoteCommand;
import me.lrxh.practice.commands.user.PingCommand;
import me.lrxh.practice.commands.user.StatsCommand;
import me.lrxh.practice.commands.user.duels.DuelAcceptCommand;
import me.lrxh.practice.commands.user.duels.DuelCommand;
import me.lrxh.practice.commands.user.duels.RematchCommand;
import me.lrxh.practice.commands.user.match.SpectateCommand;
import me.lrxh.practice.commands.user.match.StopSpectatingCommand;
import me.lrxh.practice.commands.user.match.ViewInventoryCommand;
import me.lrxh.practice.commands.user.party.*;
import me.lrxh.practice.essentials.Essentials;
import me.lrxh.practice.event.Event;
import me.lrxh.practice.event.EventTypeAdapter;
import me.lrxh.practice.event.game.EventGameListener;
import me.lrxh.practice.event.game.map.EventGameMap;
import me.lrxh.practice.event.game.map.EventGameMapTypeAdapter;
import me.lrxh.practice.kit.Kit;
import me.lrxh.practice.kit.KitEditorListener;
import me.lrxh.practice.kit.KitTypeAdapter;
import me.lrxh.practice.kit.command.KitCommand;
import me.lrxh.practice.leaderboards.LeaderboardThread;
import me.lrxh.practice.leaderboards.LeaderboardsCommand;
import me.lrxh.practice.match.Match;
import me.lrxh.practice.match.MatchListener;
import me.lrxh.practice.party.Party;
import me.lrxh.practice.party.PartyListener;
import me.lrxh.practice.profile.Profile;
import me.lrxh.practice.profile.ProfileListener;
import me.lrxh.practice.profile.hotbar.Hotbar;
import me.lrxh.practice.queue.QueueListener;
import me.lrxh.practice.queue.QueueThread;
import me.lrxh.practice.scoreboard.ScoreboardAdapter;
import me.lrxh.practice.setting.ProfileSettingsCommand;
import me.lrxh.practice.setting.SettingsCommand;
import me.lrxh.practice.util.CC;
import me.lrxh.practice.util.Console;
import me.lrxh.practice.util.InventoryUtil;
import me.lrxh.practice.util.assemble.Assemble;
import me.lrxh.practice.util.command.Honcho;
import me.lrxh.practice.util.config.BasicConfigurationFile;
import me.lrxh.practice.util.menu.MenuListener;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit;
import org.bukkit.Difficulty;
Expand Down Expand Up @@ -194,7 +194,7 @@ public void onEnable() {
}
Console.sendMessage(CC.translate("&7&m-----------------------------------------"));
Console.sendMessage(CC.translate(" "));
Console.sendMessage(CC.translate("&7| &cPraxi Practice Core"));
Console.sendMessage(CC.translate("&7| &cPractice Core"));
Console.sendMessage(CC.translate(" "));
Console.sendMessage(CC.translate("&7| &fAutor(s): &c" + getInstance().getDescription().getAuthors().toString().replace("[", "").replace("]", "")));
Console.sendMessage(CC.translate("&7| &fVersion: &c" + getInstance().getDescription().getVersion()));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

import lombok.Getter;
import lombok.Setter;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.cuboid.Cuboid;
import me.funky.praxi.arena.impl.SharedArena;
import me.funky.praxi.arena.impl.StandaloneArena;
import me.funky.praxi.kit.Kit;
import me.funky.praxi.util.LocationUtil;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.cuboid.Cuboid;
import me.lrxh.practice.arena.impl.SharedArena;
import me.lrxh.practice.arena.impl.StandaloneArena;
import me.lrxh.practice.kit.Kit;
import me.lrxh.practice.util.LocationUtil;
import org.bukkit.Location;
import org.bukkit.configuration.file.FileConfiguration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

import me.funky.praxi.Practice;
import me.funky.praxi.arena.selection.Selection;
import me.funky.praxi.match.Match;
import me.funky.praxi.match.MatchState;
import me.funky.praxi.util.CC;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.selection.Selection;
import me.lrxh.practice.match.Match;
import me.lrxh.practice.match.MatchState;
import me.lrxh.practice.util.CC;
import org.bukkit.Difficulty;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

import lombok.AllArgsConstructor;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

import me.funky.praxi.util.command.command.adapter.CommandTypeAdapter;
import me.lrxh.practice.util.command.command.adapter.CommandTypeAdapter;

public class ArenaTypeAdapter implements CommandTypeAdapter {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

import me.funky.praxi.util.command.command.adapter.CommandTypeAdapter;
import me.lrxh.practice.util.command.command.adapter.CommandTypeAdapter;

public class ArenaTypeTypeAdapter implements CommandTypeAdapter {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi.arena;
package me.lrxh.practice.arena;

public enum SpawnType {
A, B
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package me.funky.praxi.arena.command;
package me.lrxh.practice.arena.command;

import co.aikar.commands.BaseCommand;
import co.aikar.commands.annotation.*;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.Arena;
import me.funky.praxi.arena.ArenaType;
import me.funky.praxi.arena.SpawnType;
import me.funky.praxi.arena.generator.ArenaGenerator;
import me.funky.praxi.arena.generator.Schematic;
import me.funky.praxi.arena.impl.SharedArena;
import me.funky.praxi.arena.impl.StandaloneArena;
import me.funky.praxi.arena.selection.Selection;
import me.funky.praxi.kit.Kit;
import me.funky.praxi.util.CC;
import me.funky.praxi.util.ChatComponentBuilder;
import me.funky.praxi.util.ChatHelper;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.Arena;
import me.lrxh.practice.arena.ArenaType;
import me.lrxh.practice.arena.SpawnType;
import me.lrxh.practice.arena.generator.ArenaGenerator;
import me.lrxh.practice.arena.generator.Schematic;
import me.lrxh.practice.arena.impl.SharedArena;
import me.lrxh.practice.arena.impl.StandaloneArena;
import me.lrxh.practice.arena.selection.Selection;
import me.lrxh.practice.kit.Kit;
import me.lrxh.practice.util.CC;
import me.lrxh.practice.util.ChatComponentBuilder;
import me.lrxh.practice.util.ChatHelper;
import net.md_5.bungee.api.chat.BaseComponent;
import net.md_5.bungee.api.chat.TextComponent;
import org.apache.commons.lang.StringEscapeUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi.arena.cuboid;
package me.lrxh.practice.arena.cuboid;

import lombok.Data;
import org.bukkit.Bukkit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi.arena.cuboid;
package me.lrxh.practice.arena.cuboid;

/**
* Represents directions that can be applied to certain faces and actions of a Cuboid
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package me.funky.praxi.arena.generator;
package me.lrxh.practice.arena.generator;

import com.boydti.fawe.util.TaskManager;
import lombok.AllArgsConstructor;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.Arena;
import me.funky.praxi.arena.ArenaType;
import me.funky.praxi.arena.impl.SharedArena;
import me.funky.praxi.arena.impl.StandaloneArena;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.Arena;
import me.lrxh.practice.arena.ArenaType;
import me.lrxh.practice.arena.impl.SharedArena;
import me.lrxh.practice.arena.impl.StandaloneArena;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.funky.praxi.arena.generator;
package me.lrxh.practice.arena.generator;

import com.sk89q.worldedit.CuboidClipboard;
import com.sk89q.worldedit.EditSession;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package me.funky.praxi.arena.impl;
package me.lrxh.practice.arena.impl;

import lombok.Getter;
import lombok.Setter;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.Arena;
import me.funky.praxi.arena.ArenaType;
import me.funky.praxi.util.LocationUtil;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.Arena;
import me.lrxh.practice.arena.ArenaType;
import me.lrxh.practice.util.LocationUtil;
import org.bukkit.Location;
import org.bukkit.configuration.file.FileConfiguration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package me.funky.praxi.arena.impl;
package me.lrxh.practice.arena.impl;

import lombok.Getter;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.Arena;
import me.funky.praxi.arena.ArenaType;
import me.funky.praxi.util.LocationUtil;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.Arena;
import me.lrxh.practice.arena.ArenaType;
import me.lrxh.practice.util.LocationUtil;
import org.bukkit.Location;
import org.bukkit.configuration.file.FileConfiguration;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package me.funky.praxi.arena.selection;
package me.lrxh.practice.arena.selection;


import lombok.Data;
import lombok.NonNull;
import me.funky.praxi.Practice;
import me.funky.praxi.arena.cuboid.Cuboid;
import me.funky.praxi.util.ItemBuilder;
import me.lrxh.practice.Practice;
import me.lrxh.practice.arena.cuboid.Cuboid;
import me.lrxh.practice.util.ItemBuilder;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
Expand Down
Loading

0 comments on commit 24fdd47

Please sign in to comment.