Describe permtest better
This commit is contained in:
		| @@ -43,8 +43,11 @@ public class LDPermTest implements LDCommand { | |||||||
|                 LibsMsg.CANNOT_FIND_PLAYER.send(sender, args[1]); |                 LibsMsg.CANNOT_FIND_PLAYER.send(sender, args[1]); | ||||||
|                 return; |                 return; | ||||||
|             } |             } | ||||||
|  |  | ||||||
|  |             LibsMsg.LIBS_PERM_CHECK_USING_TARGET.send(sender, args[1]); | ||||||
|         } else { |         } else { | ||||||
|             player = sender; |             player = sender; | ||||||
|  |             LibsMsg.LIBS_PERM_CHECK_CAN_TARGET.send(sender); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         DisguisePermissions permissions = new DisguisePermissions(player, "disguise"); |         DisguisePermissions permissions = new DisguisePermissions(player, "disguise"); | ||||||
|   | |||||||
| @@ -280,16 +280,17 @@ public enum LibsMsg { | |||||||
|     META_CLICK_SHOW(ChatColor.GOLD + "Click to show %s"), |     META_CLICK_SHOW(ChatColor.GOLD + "Click to show %s"), | ||||||
|     LIBS_PERM_CHECK_NON_PREM( |     LIBS_PERM_CHECK_NON_PREM( | ||||||
|             ChatColor.RED + "This server is not premium, non-admins should not be able to use commands"), |             ChatColor.RED + "This server is not premium, non-admins should not be able to use commands"), | ||||||
|  |     LIBS_PERM_CHECK_CAN_TARGET(ChatColor.GOLD + "You can specify a player target with /ld permtest <Target> instead!"), | ||||||
|  |     LIBS_PERM_CHECK_USING_TARGET(ChatColor.GOLD + "Running the permission test on '%s'"), | ||||||
|     LIBS_PERM_CHECK_INFO_1(ChatColor.AQUA + "Now checking for the permission 'libsdisguises.disguise.pig'"), |     LIBS_PERM_CHECK_INFO_1(ChatColor.AQUA + "Now checking for the permission 'libsdisguises.disguise.pig'"), | ||||||
|     LIBS_PERM_CHECK_INFO_2(ChatColor.AQUA + |     LIBS_PERM_CHECK_INFO_2(ChatColor.AQUA + "If you did not give this permission, please set it."), | ||||||
|             "If you did not give this permission, please set it. You can supply a player name to test another player."), |  | ||||||
|     NORMAL_PERM_CHECK_SUCCESS(ChatColor.GOLD + "Normal permission check, success."), |     NORMAL_PERM_CHECK_SUCCESS(ChatColor.GOLD + "Normal permission check, success."), | ||||||
|     NORMAL_PERM_CHECK_FAIL(ChatColor.RED + "Normal permission check, fail."), |     NORMAL_PERM_CHECK_FAIL(ChatColor.RED + "Normal permission check, fail."), | ||||||
|     LIBS_PERM_CHECK_SUCCESS( |     LIBS_PERM_CHECK_SUCCESS( | ||||||
|             ChatColor.GOLD + "Lib's Disguises permission check, success. Pig disguise should be usable!"), |             ChatColor.GOLD + "Lib's Disguises permission check, success. Pig disguise should be usable!"), | ||||||
|     LIBS_PERM_CHECK_FAIL( |     LIBS_PERM_CHECK_FAIL( | ||||||
|             ChatColor.GOLD + "Lib's Disguises permission check, fail. Your permission plugin isn't compliant!"), |             ChatColor.GOLD + "Lib's Disguises permission check, fail. Your permission plugin isn't compliant!"), | ||||||
|     LIBS_PERM_CHECK_ZOMBIE_PERMISSIONS(ChatColor.RED + |     LIBS_PERM_CHECK_ZOMBIE_PERMISSIONS(ChatColor.GOLD + | ||||||
|             "Tested libsdisguises.disguise.zombie, which your player seems to have! There may be a problem in your " + |             "Tested libsdisguises.disguise.zombie, which your player seems to have! There may be a problem in your " + | ||||||
|             "permissions setup!"), |             "permissions setup!"), | ||||||
|     LIBS_PERM_CHECK_COMMAND_UNREGISTERED( |     LIBS_PERM_CHECK_COMMAND_UNREGISTERED( | ||||||
| @@ -319,8 +320,7 @@ public enum LibsMsg { | |||||||
|             " now, then " + |             " now, then " + | ||||||
|             "you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " + |             "you have a plugin modifying scoreboard through packets. Example of this is a plugin that modifies your " + | ||||||
|             "name above head, or the tablist. Check their configs for pushing disabling options\nSay 'I read to the " + |             "name above head, or the tablist. Check their configs for pushing disabling options\nSay 'I read to the " + | ||||||
|             "end' if you " + |             "end' if you " + "still need help with this, or we'll assume you can't read."), | ||||||
|             "still need help with this, or we'll assume you can't read."), |  | ||||||
|     LIBS_SCOREBOARD_DISABLED( |     LIBS_SCOREBOARD_DISABLED( | ||||||
|             "The scoreboard modification has been disabled in config, will continue the debug incase this is intended" + |             "The scoreboard modification has been disabled in config, will continue the debug incase this is intended" + | ||||||
|                     "."), |                     "."), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user