Refactoring

This commit is contained in:
Debucquoy Anthony 2024-01-31 12:34:04 +01:00
parent 629695ac21
commit f36e6b1aa0
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
7 changed files with 14 additions and 19 deletions

10
TODO.md
View File

@ -6,12 +6,14 @@
- [x] Make Discord Webhoook for item changes - [x] Make Discord Webhoook for item changes
- [x] chest name - [x] chest name
- [x] Show next Item - [x] Show next Item
- [x] /void manage bring
- [+] /void give afficher title - [+] /void give afficher title
- subtitle + chat - subtitle + chat
- [+] Double Check Inventory reset on die - [+] Double Check Inventory reset on die
- [ ] i18n - [+] Annonce
- [ ] /void manage bring - [+] Find Map : 51 (250, 300)
- [ ] Dupe bug (respawn) -> Gamerule - [+] Dupe bug (respawn)
- [-] i18n
- [ ] Events - [ ] Events
- [ ] Command completions - [ ] Command completions
- [ ] Annonce - [ ] More descriptive /void commands

View File

@ -11,7 +11,6 @@ import java.util.HashMap;
import java.util.UUID; import java.util.UUID;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
public class DatabaseManager { public class DatabaseManager {

View File

@ -1,4 +1,4 @@
package ovh.herisson.thevoidroad.Event; package ovh.herisson.thevoidroad;
import java.time.LocalTime; import java.time.LocalTime;

View File

@ -1,4 +1,4 @@
package ovh.herisson.thevoidroad.Entity; package ovh.herisson.thevoidroad;
import java.io.File; import java.io.File;
import java.nio.file.Files; import java.nio.file.Files;
@ -24,12 +24,6 @@ import org.bukkit.inventory.ItemStack;
import org.bukkit.persistence.PersistentDataType; import org.bukkit.persistence.PersistentDataType;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import ovh.herisson.thevoidroad.DatabaseManager;
import ovh.herisson.thevoidroad.DiscordWebhook;
import ovh.herisson.thevoidroad.TheVoidRoad;
import ovh.herisson.thevoidroad.Voids;
import ovh.herisson.thevoidroad.Event.HourEvent;
import ovh.herisson.thevoidroad.util.Tuple;
//Unique, so singleton patern //Unique, so singleton patern
public class Merchand implements Listener{ public class Merchand implements Listener{

View File

@ -2,9 +2,9 @@ package ovh.herisson.thevoidroad;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
import ovh.herisson.thevoidroad.Commands.VoidCommands; import ovh.herisson.thevoidroad.VoidCommands;
import ovh.herisson.thevoidroad.Entity.Merchand; import ovh.herisson.thevoidroad.Merchand;
import ovh.herisson.thevoidroad.Event.HourEvent; import ovh.herisson.thevoidroad.HourEvent;
public class TheVoidRoad extends JavaPlugin{ public class TheVoidRoad extends JavaPlugin{

View File

@ -1,4 +1,4 @@
package ovh.herisson.thevoidroad.util; package ovh.herisson.thevoidroad;
public class Tuple<X, Y> { public class Tuple<X, Y> {
public final X x; public final X x;

View File

@ -1,4 +1,4 @@
package ovh.herisson.thevoidroad.Commands; package ovh.herisson.thevoidroad;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -17,7 +17,7 @@ import net.kyori.adventure.text.Component;
import ovh.herisson.thevoidroad.DatabaseManager; import ovh.herisson.thevoidroad.DatabaseManager;
import ovh.herisson.thevoidroad.TheVoidRoad; import ovh.herisson.thevoidroad.TheVoidRoad;
import ovh.herisson.thevoidroad.Voids; import ovh.herisson.thevoidroad.Voids;
import ovh.herisson.thevoidroad.Entity.Merchand; import ovh.herisson.thevoidroad.Merchand;
public class VoidCommands implements CommandExecutor, TabCompleter{ public class VoidCommands implements CommandExecutor, TabCompleter{
private final Merchand m = Merchand.getInstance(); private final Merchand m = Merchand.getInstance();