Skip to content

Commit

Permalink
Merge pull request #5 from ModularSoftAU/refactor-msau
Browse files Browse the repository at this point in the history
Refactor to org.modularsoft.MobHunt and updated to latest supported version.
  • Loading branch information
benrobson authored Apr 14, 2024
2 parents fb1cb91 + 8b02faa commit c3ac495
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 47 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.18.2-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
<exclusions>
<exclusion>
Expand All @@ -59,7 +59,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.23</version>
<version>8.0.33</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.modularenigma.MobHunt;
package org.modularsoft.MobHunt;

import com.modularenigma.MobHunt.helpers.DefaultFontInfo;
import org.modularsoft.MobHunt.helpers.DefaultFontInfo;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.modularenigma.MobHunt;
package org.modularsoft.MobHunt;

import com.modularenigma.MobHunt.commands.mobclear;
import com.modularenigma.MobHunt.commands.mobhelp;
import com.modularenigma.MobHunt.commands.mobstats;
import com.modularenigma.MobHunt.commands.mobleaderboard;
import com.modularenigma.MobHunt.events.OnHunterJoin;
import com.modularenigma.MobHunt.events.OnMobKill;
import org.modularsoft.MobHunt.commands.mobclear;
import org.modularsoft.MobHunt.commands.mobhelp;
import org.modularsoft.MobHunt.commands.mobstats;
import org.modularsoft.MobHunt.commands.mobleaderboard;
import org.modularsoft.MobHunt.events.OnHunterJoin;
import org.modularsoft.MobHunt.events.OnMobKill;
import com.mysql.cj.jdbc.MysqlDataSource;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.modularenigma.MobHunt;
package org.modularsoft.MobHunt;

import lombok.Getter;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.modularenigma.MobHunt;
package org.modularsoft.MobHunt;

import com.modularenigma.MobHunt.helpers.CollectionMilestone;
import org.modularsoft.MobHunt.helpers.CollectionMilestone;
import lombok.Getter;
import org.bukkit.ChatColor;
import org.bukkit.Sound;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.modularenigma.MobHunt;
package org.modularsoft.MobHunt;

import net.kyori.adventure.text.Component;
import org.bukkit.Bukkit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package com.modularenigma.MobHunt.commands;
package org.modularsoft.MobHunt.commands;

import com.modularenigma.MobHunt.MobHuntMain;
import com.modularenigma.MobHunt.ScoreboardController;
import com.modularenigma.MobHunt.*;
import org.modularsoft.MobHunt.MobHuntMain;
import org.modularsoft.MobHunt.ScoreboardController;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.modularsoft.MobHunt.HunterController;
import org.modularsoft.MobHunt.MobHuntQuery;

public class mobclear implements CommandExecutor {
private final MobHuntMain plugin;
Expand All @@ -36,7 +37,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @N
}

// If another argument is present, clear the stats of another player.
// By using OfflinePlater, we can remove the stats of a player who is not
// By using OfflinePlayer, we can remove the stats of a player who is not
// currently online.
if (args.length > 0) {
// Check to see if the player has logged in before.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.modularenigma.MobHunt.commands;
package org.modularsoft.MobHunt.commands;

import com.modularenigma.MobHunt.HunterController;
import com.modularenigma.MobHunt.MobHuntMain;
import com.modularenigma.MobHunt.MobHuntQuery;
import org.modularsoft.MobHunt.HunterController;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

public class mobhelp implements CommandExecutor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.modularenigma.MobHunt.commands;
package org.modularsoft.MobHunt.commands;

import com.modularenigma.MobHunt.*;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.modularsoft.MobHunt.HunterController;
import org.modularsoft.MobHunt.MobHuntMain;
import org.modularsoft.MobHunt.MobHuntQuery;

import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class mobleaderboard implements CommandExecutor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.modularenigma.MobHunt.commands;
package org.modularsoft.MobHunt.commands;

import com.modularenigma.MobHunt.MobHuntMain;
import com.modularenigma.MobHunt.HunterController;
import com.modularenigma.MobHunt.MobHuntQuery;
import org.modularsoft.MobHunt.MobHuntMain;
import org.modularsoft.MobHunt.HunterController;
import org.modularsoft.MobHunt.MobHuntQuery;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.modularenigma.MobHunt.events;
package org.modularsoft.MobHunt.events;

import com.modularenigma.MobHunt.MobHuntMain;
import com.modularenigma.MobHunt.HunterController;
import com.modularenigma.MobHunt.MobHuntQuery;
import com.modularenigma.MobHunt.ScoreboardController;
import org.modularsoft.MobHunt.MobHuntMain;
import org.modularsoft.MobHunt.HunterController;
import org.modularsoft.MobHunt.MobHuntQuery;
import org.modularsoft.MobHunt.ScoreboardController;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.modularenigma.MobHunt.events;
package org.modularsoft.MobHunt.events;

import com.modularenigma.MobHunt.*;
import com.modularenigma.MobHunt.helpers.CollectionMilestone;
import org.modularsoft.MobHunt.helpers.CollectionMilestone;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEvent;
import org.modularsoft.MobHunt.HunterController;
import org.modularsoft.MobHunt.MobHuntMain;
import org.modularsoft.MobHunt.MobHuntQuery;
import org.modularsoft.MobHunt.ScoreboardController;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.modularenigma.MobHunt.helpers;
package org.modularsoft.MobHunt.helpers;

import com.modularenigma.MobHunt.HunterController;
import org.modularsoft.MobHunt.HunterController;
import lombok.Getter;
import org.bukkit.entity.Player;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.modularenigma.MobHunt.helpers;
package org.modularsoft.MobHunt.helpers;

/**
* From https://www.spigotmc.org/threads/free-code-sending-perfectly-centered-chat-message.95872/
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
main: com.modularenigma.MobHunt.MobHuntMain
main: org.modularsoft.MobHunt.MobHuntMain
name: MobHunt
description: Hunt as many mobs overall, or of a unique mob type.
version: ${project.version}
authors: [ModularEnigma]
api-version: 1.18
authors: [ModularSoft]
api-version: 1.20

commands:
mobstats:
Expand Down

0 comments on commit c3ac495

Please sign in to comment.