Removes "ultimate" jumppads mode

This commit is contained in:
Video 2024-01-27 08:38:46 -07:00
parent d2b524c259
commit 8be2a48778
3 changed files with 3 additions and 38 deletions

View File

@ -20,7 +20,7 @@ import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@CommandParameters(name = "jumppads", usage = "/jumppads <mode> [player]", description = "Enables jump pads for yourself or another player. Mode types available: none, regular, enhanced, extreme, ultimate", aliases = "jp,pads,launchpads")
@CommandParameters(name = "jumppads", usage = "/jumppads <mode> [player]", description = "Enables jump pads for yourself or another player. Mode types available: none, regular, enhanced, extreme", aliases = "jp,pads,launchpads")
@CommandPermissions(permission = "plex.tfmextras.jumppads", source = RequiredCommandSource.ANY)
public class JumpPadsCommand extends PlexCommand
{
@ -126,7 +126,7 @@ public class JumpPadsCommand extends PlexCommand
{
if (args.length == 1)
{
return Arrays.asList("none", "normal", "enhanced", "extreme", "ultimate");
return Arrays.asList("none", "normal", "enhanced", "extreme");
}
else if (args.length == 2)
{

View File

@ -4,6 +4,5 @@ public enum Mode
{
NORMAL,
ENHANCED,
EXTREME,
ULTIMATE
EXTREME
}

View File

@ -100,40 +100,6 @@ public class JumpPadsListener extends PlexListener
}
}
if (mode.equals(Mode.ULTIMATE))
{
blockWrapMap.forEach((b, w) ->
{
if (jumpPads.wool.getValues().contains(b.getType()))
{
if (w.y() == -1)
{
jumpPads.extreme(playerVector.add(new Vector(0.0, jumpPads.SCALAR * jumpPads.STRENGTH, 0.0)));
}
switch (w.x())
{
case (-1):
jumpPads.extreme(playerVector.add(new Vector(-jumpPads.SCALAR * jumpPads.STRENGTH, 0.0, 0.0)));
case (1):
jumpPads.extreme(playerVector.add(new Vector(jumpPads.SCALAR * jumpPads.STRENGTH, 0.0, 0.0)));
}
switch (w.z())
{
case (-1):
jumpPads.extreme(playerVector.add(new Vector(0.0, 0.0, -jumpPads.SCALAR * jumpPads.STRENGTH)));
case (1):
jumpPads.extreme(playerVector.add(new Vector(0.0, 0.0, jumpPads.SCALAR * jumpPads.STRENGTH)));
}
player.setVelocity(playerVector);
}
});
}
}
@EventHandler(priority = EventPriority.HIGHEST)