-
Notifications
You must be signed in to change notification settings - Fork 47
Add /me command, closes #836 #837
base: master
Are you sure you want to change the base?
Conversation
You can still use |
@iEli2tyree011 That's why I added this https://github.com/twizmwazin/CardinalPGM/pull/837/files#diff-c2eee098f5e1d9f71d4efd97974e23a2R5 |
@Alfalik Did you test that? I've always had problems removing default permissions with the permission module. |
@iEli2tyree011 Meh, players can still use default minecraft permissions, |
I'll be honest I'd rather just outright disable the vanilla command |
what about just a |
This PR can be closed |
it still would be nice to add a cardinal /me so that it uses display names (with ranks and team) instead of white names, but the vanilla one should be left as it is (usable by default, and blocked during mute or gmute) and the same behaviour should be used for cardinal:me As I see it, you should: |
I've ammend the commit, so if a player do |
Leave the old chat module as it was, if someone has their server on the bukkit setting that uses vanilla by default it will be better to also block the regular /me (bcos it will be the vanilla one) |
👍 |
@CommandPermissions("cardinal.me") | ||
public static void me(final CommandContext cmd, CommandSender sender) throws CommandException { | ||
if (!(sender instanceof Player)) throw new CommandException(new LocalizedChatMessage(ChatConstant.ERROR_CONSOLE_NO_USE).getMessage(ChatUtil.getLocale(sender))); | ||
if (!GameHandler.getGameHandler().getGlobalMute()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!GameHandler.getGameHandler().getGlobalMute() || sender.hasPermission("cardinal.globalmute.override")) {
Should have been fixed in 6ce8cbd , thanks for your work in this PR! |
27fe706
to
6d95d9c
Compare
It should be better to simply create and override the
/me
command, instead of blocking it. Here's an image of how it looks like https://gyazo.com/dc6c7193eeb418ab816eaedd1508a9b3