Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

added toggling staffchat#7

Open
Taahh wants to merge 2 commits intoBariaHQ:masterfrom
Taahh:patch-4
Open

added toggling staffchat#7
Taahh wants to merge 2 commits intoBariaHQ:masterfrom
Taahh:patch-4

Conversation

@Taahh
Copy link
Copy Markdown

@Taahh Taahh commented Jul 24, 2018

No description provided.

Copy link
Copy Markdown

@ncurran02 ncurran02 left a comment

Choose a reason for hiding this comment

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

Fix the formatting please.

player.setAdminChat(true);
playerSender.sendMessage(ChatColor.AQUA + "Staff chat enabled.");
return true;
} else if (player.inAdminChat()){
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can use else statement or something similar to msg(!adminChatToggled ? “Disabled” : “Enabled”);
On my phone atm.

import me.bariahq.bariahqmod.player.FPlayer;
import me.bariahq.bariahqmod.player.PlayerData;
import me.bariahq.bariahqmod.rank.Rank;
import net.md_5.bungee.api.ChatColor;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

org.bukkit.ChatColor please.

return true;
} else {
if (!player.inAdminChat()){
player.setAdminChat(true);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does the boolean exist in FPlayer class?

@ncurran02
Copy link
Copy Markdown

Any updates? @ThePhoenixBlader

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