Skip to content

w pull - #3

Open
Axdmaz wants to merge 21 commits into
KoolFreedom:mainfrom
Axdmaz:main
Open

w pull#3
Axdmaz wants to merge 21 commits into
KoolFreedom:mainfrom
Axdmaz:main

Conversation

@Axdmaz

@Axdmaz Axdmaz commented Jul 27, 2026

Copy link
Copy Markdown

I have added /launch!
well tried too it might not work...

THERE IS A PROBLEM WITH THE RELEASE IM FORKING OFF
I WILL UPDATE SOON

@0x7694C9
0x7694C9 requested review from 0x7694C9 and gamingto12 and removed request for 0x7694C9 and gamingto12 July 27, 2026 21:10
@0x7694C9

Copy link
Copy Markdown
Collaborator

Comments have been made, please read them and make changes accordingly.

{
sender.sendMessage(miniMessage.deserialize("<red>You do not have permission to use this command!</red>"));
return true;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary permission check

{
sender.sendMessage(miniMessage.deserialize("<red>Usage: /" + commandLabel + " <player></red>"));
return false;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can just return false, no need for the usage message. By default it returns the command usage

@CommandParameters(name = "Launch", description = "Launch a player backwards 50 blocks")
public class LaunchCommand extends KoolCommand
{
private final MiniMessage miniMessage = MiniMessage.miniMessage();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A MiniMessage method exists somewhere else. Find it, remove this and use it instead in this command

import org.bukkit.entity.Player;
import org.bukkit.util.Vector;

@CommandParameters(name = "Launch", description = "Launch a player backwards 50 blocks")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a usage parameter to this. Also the command name does not need to be capitalized.


if (target == null)
{
sender.sendMessage(miniMessage.deserialize("<red>Player <yellow>" + args[0] + "</yellow> is not online!</red>"));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use msg(sender, playerNotFound) for this

sender.sendMessage(miniMessage.deserialize("<green>Launched: <yellow>" + target.getName() + "</yellow></green>"));
}

target.sendMessage(miniMessage.deserialize("<bold><red>Whoosh!</red></bold>"));

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You do not need to include /yellow or anything like that for single line MiniMessage strings.

Please also utilize Placeholders.

Also, a MiniMessage deserialize method already exists somewhere in this plugin, find it and use that instead.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This.....no

target.setVelocity(launchVelocity);


// Send tuff messages.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try not to add useless comments like this. i really appreciate it when the code doesn't look like it was written by a 9 year old

Placeholder.unparsed("name", sender.getName()));
return true;
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this.....

{
broadcast("<#823d08><name> Has done a big wet sloppy shit", Placeholder.unparsed("name", sender.getName()));
return true;
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

Axdmaz added 7 commits July 28, 2026 20:59
Your wish is my command :D 
JAVA IS SO EASY WITH THIS
Removed commented code and updated message formatting.
Removed the 'shit' case from the ReactionCommand.
):
@0x7694C9

Copy link
Copy Markdown
Collaborator

I do not see how /launch will make it fair for other players on other SMP servers. Mind you, this is an SMP plugin that was made for players to have some fun commands while also providing some neat administration commands. Commands like this can be abused VERY easily. I have no other choice but to close this Pull Request without merging these changes.

But, regardless of what the command was, I will say that you did a nice job with programming the command + other changes to the plugin. Your knowledge of the Java programming language have gotten better!

@0x7694C9 0x7694C9 closed this Jul 28, 2026
@gamingto12 gamingto12 reopened this Jul 29, 2026
@Axdmaz

Axdmaz commented Jul 29, 2026

Copy link
Copy Markdown
Author

i will remove /launch and add other things i get what you mean

Axdmaz added 2 commits July 29, 2026 16:52
yes i might've copy pasted the satisfyall command but im 
coding on a slow laptop rn
@0x7694C9

Copy link
Copy Markdown
Collaborator

Hello, I see that this has been re-opened. I want to make you aware of a new policy that I have made, you can find it @ https://koolfreedom.eu.org/d/4-koolfreedom-developer-information

This is important to when editing this PR and also making future ones. I highly recommend you read it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants