mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-04 03:56:41 +00:00
Minors
- Make disallowed-blocks translatable - Add more trnslatable messages - Update WorldEdit messages missing a prefix
This commit is contained in:
@ -309,12 +309,12 @@ public class DefaultBlockParser extends InputParser<BaseBlock> {
|
||||
if (context.isRestricted()) {
|
||||
Actor actor = context.requireActor();
|
||||
if (!actor.hasPermission("worldedit.anyblock") && worldEdit.getConfiguration().checkDisallowedBlocks(holder)) {
|
||||
throw new DisallowedUsageException(BBC.getPrefix() + "You are not allowed to use '" + holder + "'");
|
||||
throw new DisallowedUsageException(BBC.BLOCK_NOT_ALLOWED + " '" + holder + "'");
|
||||
}
|
||||
CompoundTag nbt = holder.getNbtData();
|
||||
if (nbt != null) {
|
||||
if (!actor.hasPermission("worldedit.anyblock")) {
|
||||
throw new DisallowedUsageException(BBC.getPrefix() + "You are not allowed to nbt'");
|
||||
throw new DisallowedUsageException("You are not allowed to nbt'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user