Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 1.19.2 #125

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<maven.compiler.target>1.8</maven.compiler.target>

<!-- Spigot properties -->
<spigot.version>1.18.1</spigot.version>
<spigot.version>1.19.2</spigot.version>
<spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs>

<!-- Default settings for sonarcloud.io -->
Expand Down Expand Up @@ -230,7 +230,7 @@
<dependency>
<groupId>io.github.baked-libs</groupId>
<artifactId>dough-api</artifactId>
<version>1.1.1</version>
<version>1.2.0</version>
<scope>compile</scope>
</dependency>

Expand All @@ -244,7 +244,7 @@
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>2.2.1</version>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bstats.bukkit.Metrics;
import org.bukkit.Server;
import org.bukkit.command.Command;
Expand Down Expand Up @@ -250,7 +250,7 @@ public void onEnable() {
RecipeUtil.setupRecipes();
RecipeBook.buildRecipes();

protectionManager = new ProtectionManager(getServer());
protectionManager = new ProtectionManager(instance);
});

getServer().getScheduler().runTaskTimer(this, LocationManager.getManager()::tick, 1L, 1L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Server;

import io.github.thebusybiscuit.sensibletoolbox.SensibleToolboxPlugin;
Expand Down Expand Up @@ -51,6 +51,8 @@ public enum MinecraftVersion {
*/
MINECRAFT_1_18(18, "1.18.x"),

MINECRAFT_1_19(19, "1.19.x"),

/**
* This constant represents an exceptional state in which we were unable
* to identify the Minecraft Version we are using
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.filters;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.inventory.ItemStack;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Color;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.ChatColor;
import org.bukkit.Material;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;

import io.github.thebusybiscuit.sensibletoolbox.api.LightMeterHolder;
import io.github.thebusybiscuit.sensibletoolbox.api.gui.InventoryGUI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import org.apache.commons.lang.math.IntRange;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.IntRange;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.api.gui.gadgets;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
Expand Down Expand Up @@ -269,7 +269,7 @@ public final boolean hasAccessRights(@Nonnull Player player) {
* Check if this block may be interacted with by the player of the given
* UUID, based on its current security settings. Note that no player
* permission check is done here; see
* {@link BaseSTBItem#checkPlayerPermission(org.bukkit.entity.Player, me.desht.sensibletoolbox.api.items.BaseSTBItem.ItemAction)}.
* .
*
* @param uuid
* the UUID to check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.ChatColor;
import org.bukkit.Keyed;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import javax.annotation.Nullable;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.StringUtils;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.inventory.ItemStack;

import com.google.common.base.Joiner;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.inventory.ItemStack;

import io.github.thebusybiscuit.sensibletoolbox.api.items.BaseSTBMachine;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.inventory.ItemStack;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.blocks;

import org.apache.commons.lang.math.IntRange;
import io.github.thebusybiscuit.sensibletoolbox.helpers.IntRange;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.DyeColor;
import org.bukkit.Material;
import org.bukkit.block.Block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.StringUtils;
import io.github.thebusybiscuit.sensibletoolbox.helpers.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.DyeColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.awt.Color;

import org.apache.commons.lang.math.IntRange;
import io.github.thebusybiscuit.sensibletoolbox.helpers.IntRange;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.thebusybiscuit.sensibletoolbox.blocks;

import org.apache.commons.lang.math.IntRange;
import io.github.thebusybiscuit.sensibletoolbox.helpers.IntRange;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.DyeColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.WordUtils;
import io.github.thebusybiscuit.sensibletoolbox.helpers.WordUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.Set;
import java.util.UUID;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import java.util.List;
import java.util.Locale;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.block.Block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import javax.annotation.ParametersAreNonnullByDefault;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import java.util.UUID;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import javax.annotation.Nonnull;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.configuration.file.YamlConfiguration;

import io.github.thebusybiscuit.sensibletoolbox.SensibleToolboxPlugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Keyed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.Set;
import java.util.UUID;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.OfflinePlayer;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.Validate;
import org.apache.commons.lang.math.IntRange;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.IntRange;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang.Validate;
import io.github.thebusybiscuit.sensibletoolbox.helpers.Validate;
import org.bukkit.Bukkit;
import org.bukkit.Chunk;
import org.bukkit.Location;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package io.github.thebusybiscuit.sensibletoolbox.helpers;

public class IntRange {
int minimumInteger;
int maximumInteger;

public IntRange(int x) {
this.minimumInteger = x;
this.maximumInteger = x;
}
public IntRange(int min, int max) {
this.minimumInteger = min;
this.maximumInteger = max;
}
public boolean containsInteger(int i) {
return i <= maximumInteger && i >= minimumInteger;
}

public int getMinimumInteger() {
return minimumInteger;
}

public void setMinimumInteger(int minimumInteger) {
this.minimumInteger = minimumInteger;
}

public int getMaximumInteger() {
return maximumInteger;
}

public void setMaximumInteger(int maximumInteger) {
this.maximumInteger = maximumInteger;
}
}
Loading