Skip to content

Commit

Permalink
Fix plugin main class name
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Sep 17, 2024
1 parent b6bda63 commit 139be5e
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.esoteric_organisation.template_paper_plugin.resource_pack.ResourcePackManager;

@DefaultQualifier(NonNull.class)
public final class ExamplePaperPlugin extends JavaPlugin {
public final class TemplatePaperPlugin extends JavaPlugin {

@Nullable
private FileManager fileManager;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class GiveCustomItemCommand extends CommandAPICommand {

public GiveCustomItemCommand(ExamplePaperPlugin plugin) {
public GiveCustomItemCommand(TemplatePaperPlugin plugin) {
super("give-custom-item");

String customItemArgumentNodeName = "custom-item-id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class PlaceCustomMultiblockCommand extends CommandAPICommand {

public PlaceCustomMultiblockCommand(ExamplePaperPlugin plugin) {
public PlaceCustomMultiblockCommand(TemplatePaperPlugin plugin) {
super("place-custom-multiblock");

String customMultiblockArgumentNodeName = "custom-multiblock-id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class SetLanguageCommand extends CommandAPICommand {

public SetLanguageCommand(ExamplePaperPlugin plugin) {
public SetLanguageCommand(TemplatePaperPlugin plugin) {
super("set-language");

LanguageManager languageManager = plugin.getLanguageManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

public class SpawnCustomMultientityCommand extends CommandAPICommand {

public SpawnCustomMultientityCommand(ExamplePaperPlugin plugin) {
public SpawnCustomMultientityCommand(TemplatePaperPlugin plugin) {
super("spawn-custom-multientity");

String customMultientityArgumentNodeName = "custom-multientity-id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@

public abstract class AbstractCustomItem implements Listener {

protected final ExamplePaperPlugin plugin;
protected final TemplatePaperPlugin plugin;

private final CustomItem itemId;
private final Material material;

public AbstractCustomItem(ExamplePaperPlugin plugin, CustomItemManager customItemManager, CustomItem itemId, Material material) {
public AbstractCustomItem(TemplatePaperPlugin plugin, CustomItemManager customItemManager, CustomItem itemId, Material material) {
this.plugin = plugin;

this.itemId = itemId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class CustomItemManager {

private final Map<CustomItem, AbstractCustomItem> customItemMap = new HashMap<>();

public CustomItemManager(ExamplePaperPlugin plugin) {
public CustomItemManager(TemplatePaperPlugin plugin) {
}

public void addCustomItem(CustomItem itemId, AbstractCustomItem customItem) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

public abstract class AbstractCustomMultiblock implements Listener {

protected final ExamplePaperPlugin plugin;
protected final TemplatePaperPlugin plugin;

private final List<List<BlockLocation>> multiblocks = new ArrayList<>();

Expand All @@ -26,7 +26,7 @@ public void addMultiblocks(List<List<BlockLocation>> addedMultiblocks) {
multiblocks.addAll(addedMultiblocks);
}

public AbstractCustomMultiblock(ExamplePaperPlugin plugin, CustomMultiblockManager customMultiblockManager, CustomMultiblock multiblockId) {
public AbstractCustomMultiblock(TemplatePaperPlugin plugin, CustomMultiblockManager customMultiblockManager, CustomMultiblock multiblockId) {
this.plugin = plugin;

Bukkit.getPluginManager().registerEvents(this, plugin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class CustomMultiblockManager {

private final ExamplePaperPlugin plugin;
private final TemplatePaperPlugin plugin;

private final String multiblocksFileExtension = ".json";
private final String multiblocksResourceFilePath = "data" + File.separator + "multiblocks" + multiblocksFileExtension;
Expand All @@ -32,7 +32,7 @@ public class CustomMultiblockManager {

private final Map<CustomMultiblock, AbstractCustomMultiblock> customMultiblockMap = new HashMap<>();

public CustomMultiblockManager(ExamplePaperPlugin plugin) {
public CustomMultiblockManager(TemplatePaperPlugin plugin) {
this.plugin = plugin;

multiblocksFilePath = plugin.getDataFolder() + File.separator + multiblocksResourceFilePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

public abstract class AbstractCustomMultientity<E extends Entity> implements Listener {

protected final ExamplePaperPlugin plugin;
protected final TemplatePaperPlugin plugin;

private final CustomMultientity entityId;

protected AbstractCustomMultientity(ExamplePaperPlugin plugin, CustomMultientityManager customMultientityManager, CustomMultientity entityId) {
protected AbstractCustomMultientity(TemplatePaperPlugin plugin, CustomMultientityManager customMultientityManager, CustomMultientity entityId) {
this.plugin = plugin;

this.entityId = entityId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class CustomMultientityManager {

private final Map<CustomMultientity, AbstractCustomMultientity<?>> customMultientityMap = new HashMap<>();

public CustomMultientityManager(ExamplePaperPlugin plugin) {
public CustomMultientityManager(TemplatePaperPlugin plugin) {

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class PlayerDataManager {

private final ExamplePaperPlugin plugin;
private final TemplatePaperPlugin plugin;

private final String playerDataFilesExtension = ".json";

Expand All @@ -28,7 +28,7 @@ public class PlayerDataManager {

private final Map<UUID, PlayerProfile> playerData = new HashMap<>();

public PlayerDataManager(ExamplePaperPlugin plugin) {
public PlayerDataManager(TemplatePaperPlugin plugin) {
this.plugin = plugin;

playerDataFolderPath = plugin.getDataPath() + File.separator + playerDataFolderName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

public class FileManager {

private final ExamplePaperPlugin plugin;
private final TemplatePaperPlugin plugin;

public FileManager(ExamplePaperPlugin plugin) {
public FileManager(TemplatePaperPlugin plugin) {
this.plugin = plugin;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

public class HttpServerManager {

private ExamplePaperPlugin plugin;
private TemplatePaperPlugin plugin;

private String hostName;
private int port;
Expand All @@ -43,7 +43,7 @@ public String getSocketAddress() {
return getHostName() + ":" + getPort();
}

public HttpServerManager(ExamplePaperPlugin plugin) {
public HttpServerManager(TemplatePaperPlugin plugin) {
if (plugin.getResourcePackManager().getResourcePackZipFile() == null) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PlayerJoinListener implements Listener {

private ResourcePackInfo resourcePackInfo;

public PlayerJoinListener(ExamplePaperPlugin plugin, HttpServerManager httpServerManager) {
public PlayerJoinListener(TemplatePaperPlugin plugin, HttpServerManager httpServerManager) {
resourcePackInfo = ResourcePackInfo.resourcePackInfo().hash(FileUtil.getSha1HexString(plugin.getResourcePackManager().getResourcePackZipFile()))
.uri(URI.create("http://" + httpServerManager.getSocketAddress() + "/")).build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LanguageManager {

private final MiniMessage miniMessage = MiniMessage.miniMessage();

private final ExamplePaperPlugin plugin;
private final TemplatePaperPlugin plugin;

private final String languageMessageFilesExtension = ".yaml";

Expand All @@ -46,7 +46,7 @@ public Set<String> getLanguages() {
return languages.keySet();
}

public LanguageManager(ExamplePaperPlugin plugin) {
public LanguageManager(TemplatePaperPlugin plugin) {
this.plugin = plugin;

languagesFolderPath = plugin.getDataPath() + File.separator + languagesFolderName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

public class ResourcePackManager {

private final ExamplePaperPlugin plugin;
private final TemplatePaperPlugin plugin;

private final String resourcePackResourceFolderName = String.join(" ", ExamplePaperPlugin.class.getSimpleName().split("(?=[A-Z])")) + " Resource Pack";
private final String resourcePackResourceFolderName = String.join(" ", TemplatePaperPlugin.class.getSimpleName().split("(?=[A-Z])")) + " Resource Pack";

private final String resourcePackFileType = "application";
private final String resourcePackFileExtension = "zip";
Expand Down Expand Up @@ -47,7 +47,7 @@ public File getResourcePackZipFile() {
return resourcePackZipFile;
}

public ResourcePackManager(ExamplePaperPlugin plugin) {
public ResourcePackManager(TemplatePaperPlugin plugin) {
this.plugin = plugin;

saveResourcepackZipFile();
Expand Down

0 comments on commit 139be5e

Please sign in to comment.