mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2024-12-28 18:44:32 +00:00
Limited the radius to 20 and the strength to 10
This commit is contained in:
parent
8ce2d6256e
commit
a78196d4d5
1 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ package dev.plex.extras.command;
|
||||||
import dev.plex.command.PlexCommand;
|
import dev.plex.command.PlexCommand;
|
||||||
import dev.plex.command.annotation.CommandParameters;
|
import dev.plex.command.annotation.CommandParameters;
|
||||||
import dev.plex.command.annotation.CommandPermissions;
|
import dev.plex.command.annotation.CommandPermissions;
|
||||||
|
import dev.plex.util.PlexLog;
|
||||||
import net.kyori.adventure.text.Component;
|
import net.kyori.adventure.text.Component;
|
||||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
@ -30,7 +31,7 @@ public class ExpelCommand extends PlexCommand
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
radius = Double.parseDouble(args[0]);
|
radius = Math.min(Double.parseDouble(args[0]), 20.0);
|
||||||
}
|
}
|
||||||
catch (NumberFormatException ignored)
|
catch (NumberFormatException ignored)
|
||||||
{
|
{
|
||||||
|
@ -42,7 +43,7 @@ public class ExpelCommand extends PlexCommand
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
strength = Double.parseDouble(args[1]);
|
strength = Math.min(Double.parseDouble(args[1]), 10.0);
|
||||||
}
|
}
|
||||||
catch (NumberFormatException ignored)
|
catch (NumberFormatException ignored)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue