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

Add PingCommand! #66

Closed
wants to merge 1 commit into from
Closed

Add PingCommand! #66

wants to merge 1 commit into from

Conversation

zitreF
Copy link
Contributor

@zitreF zitreF commented Feb 13, 2022

No description provided.

@zitreF zitreF requested a review from Rollczi February 13, 2022 20:15
import com.eternalcode.core.command.implementations.TeleportCommand;
import com.eternalcode.core.command.implementations.WhoIsCommand;
import com.eternalcode.core.command.implementations.WorkbenchCommand;
import com.eternalcode.core.command.implementations.*;
Copy link
Member

Choose a reason for hiding this comment

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

Nie używaj * do importów


@Section(route = "ping")
@Permission("eternalcore.command.ping")
@UsageMessage("&8» &cPoprawne użycie &7/kill (player)")
Copy link
Member

Choose a reason for hiding this comment

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

popraw @UsageMessage


Player target = playerOption.get();

player.sendMessage(ChatUtils.color(StringUtils.replaceEach(messages.otherMessages.pingMessage, new String[]{"{PLAYER}", "{PING}"}, new String[]{target.getName(), String.valueOf(target.spigot().getPing())})));
Copy link
Member

Choose a reason for hiding this comment

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

duże powtórzenie kodu

@Rollczi
Copy link
Member

Rollczi commented Feb 13, 2022

nazywaj normalnie commity

@zitreF zitreF closed this Feb 13, 2022
@EternalCodeTeam EternalCodeTeam locked and limited conversation to collaborators Feb 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants