Skip to content

Commit

Permalink
removed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bearofbusiness committed Oct 7, 2024
1 parent dde2bae commit 510a7ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
group = 'org.vindicterra'
version = '0.0.0-dev'

publishing {
/*publishing {
publications {
pluginPublication(MavenPublication) {
artifactId = 'vindicterra-lib'
Expand All @@ -23,7 +23,7 @@ publishing {
}
}
}
}
}*/

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.vindicterra.vindicterralib;

import org.bukkit.plugin.java.JavaPlugin;

@SuppressWarnings("unused")
public final class VindicterraLib extends JavaPlugin {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabExecutor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import java.lang.reflect.Constructor;
Expand All @@ -37,6 +36,7 @@
* usage = "{@literal <param1>} {@literal <param2|param3>} [optional param]",<br>
* requiredArgs = 2)
*/
@SuppressWarnings("unused")
@Getter
public abstract class ParentCommand extends Command implements TabExecutor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.Arrays;

@Getter
@SuppressWarnings({"unused", "ResultOfMethodCallIgnored"})
public class ConfigFile extends YamlConfiguration {

@SuppressWarnings("CanBeFinal")
Expand All @@ -21,6 +22,7 @@ public ConfigFile(JavaPlugin plugin, String name) {
this.file = new File(plugin.getDataFolder(), name + ".yml");

if(!file.exists()) {

file.getParentFile().mkdirs();
plugin.saveResource(name + ".yml", false);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import java.math.RoundingMode;

import org.bukkit.entity.Player;

@SuppressWarnings("unused")
public class ExperienceManager {

private Player player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/**
* Utility for serializing an Object into a Player's PDC
*/
@SuppressWarnings("unused")
public class SerializeToPDC {
/**
*
Expand Down

0 comments on commit 510a7ee

Please sign in to comment.