mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 09:13:43 +01:00 
			
		
		
		
	Updating the permissions for the /[skillname] commands.
This commit is contained in:
		| @@ -52,7 +52,7 @@ public final class CommandRegistrationHelper { | |||||||
|  |  | ||||||
|                 command.setAliases(aliasList); |                 command.setAliases(aliasList); | ||||||
|                 command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName))); |                 command.setDescription(LocaleLoader.getString("Commands.Description.Skill", Misc.getCapitalized(localizedName))); | ||||||
|                 command.setPermission("mcmmo.skills." + commandName); |                 command.setPermission("mcmmo.commands." + commandName); | ||||||
|                 command.setPermissionMessage(permissionsMessage); |                 command.setPermissionMessage(permissionsMessage); | ||||||
|  |  | ||||||
|                 switch (skill) { |                 switch (skill) { | ||||||
|   | |||||||
| @@ -733,21 +733,36 @@ permissions: | |||||||
|     mcmmo.commands.defaults: |     mcmmo.commands.defaults: | ||||||
|         description: Implies all default mcmmo.commands permissions. |         description: Implies all default mcmmo.commands permissions. | ||||||
|         children: |         children: | ||||||
|  |             mcmmo.commands.acrobatics: true | ||||||
|  |             mcmmo.commands.archery: true | ||||||
|  |             mcmmo.commands.axes: true | ||||||
|  |             mcmmo.commands.excavation: true | ||||||
|  |             mcmmo.commands.fishing: true | ||||||
|  |             mcmmo.commands.herbalism: true | ||||||
|             mcmmo.commands.inspect: true |             mcmmo.commands.inspect: true | ||||||
|             mcmmo.commands.mcability: true |             mcmmo.commands.mcability: true | ||||||
|             mcmmo.commands.mcmmo: true |             mcmmo.commands.mcmmo: true | ||||||
|             mcmmo.commands.mcrank: true |             mcmmo.commands.mcrank: true | ||||||
|             mcmmo.commands.mcstats: true |             mcmmo.commands.mcstats: true | ||||||
|             mcmmo.commands.mctop.all: true |             mcmmo.commands.mctop.all: true | ||||||
|  |             mcmmo.commands.mining: true | ||||||
|             mcmmo.commands.party.all: true |             mcmmo.commands.party.all: true | ||||||
|             mcmmo.commands.ptp: true |             mcmmo.commands.ptp: true | ||||||
|             mcmmo.commands.ptp.accept: true |             mcmmo.commands.ptp.accept: true | ||||||
|             mcmmo.commands.ptp.acceptall: true |             mcmmo.commands.ptp.acceptall: true | ||||||
|             mcmmo.commands.ptp.toggle: true |             mcmmo.commands.ptp.toggle: true | ||||||
|  |             mcmmo.commands.repair: true | ||||||
|  |             mcmmo.commands.smelting: true | ||||||
|  |             mcmmo.commands.swords: true | ||||||
|  |             mcmmo.commands.taming: true | ||||||
|  |             mcmmo.commands.unarmed: true | ||||||
|  |             mcmmo.commands.woodcutting: true | ||||||
|     mcmmo.commands.ability: |     mcmmo.commands.ability: | ||||||
|         description: Allows access to the mcability command |         description: Allows access to the mcability command | ||||||
|         children: |         children: | ||||||
|             mcmmo.commands.mcability: true |             mcmmo.commands.mcability: true | ||||||
|  |     mcmmo.commands.acrobatics: | ||||||
|  |         description: Allows access to the acrobatics command | ||||||
|     mcmmo.commands.addlevels: |     mcmmo.commands.addlevels: | ||||||
|         description: Allows access to the addlevels command |         description: Allows access to the addlevels command | ||||||
|     mcmmo.commands.addlevels.others: |     mcmmo.commands.addlevels.others: | ||||||
| @@ -756,6 +771,16 @@ permissions: | |||||||
|         description: Allows access to the addxp command |         description: Allows access to the addxp command | ||||||
|     mcmmo.commands.addxp.others: |     mcmmo.commands.addxp.others: | ||||||
|         description: Allows access to the addxp command for other players |         description: Allows access to the addxp command for other players | ||||||
|  |     mcmmo.commands.archery: | ||||||
|  |         description: Allows access to the archery command | ||||||
|  |     mcmmo.commands.axes: | ||||||
|  |         description: Allows access to the axes command | ||||||
|  |     mcmmo.commands.excavation: | ||||||
|  |         description: Allows access to the excavation command | ||||||
|  |     mcmmo.commands.fishing: | ||||||
|  |         description: Allows access to the fishing command | ||||||
|  |     mcmmo.commands.herbalism: | ||||||
|  |         description: Allows access to the herbalism command | ||||||
|     mcmmo.commands.inspect.*: |     mcmmo.commands.inspect.*: | ||||||
|         description: Implies access to all mcmmo.commands.inspect permissions |         description: Implies access to all mcmmo.commands.inspect permissions | ||||||
|         children: |         children: | ||||||
| @@ -859,6 +884,8 @@ permissions: | |||||||
|         description: Allows access to the mctop command for unarmed |         description: Allows access to the mctop command for unarmed | ||||||
|     mcmmo.commands.mctop.woodcutting: |     mcmmo.commands.mctop.woodcutting: | ||||||
|         description: Allows access to the mctop command for woodcutting |         description: Allows access to the mctop command for woodcutting | ||||||
|  |     mcmmo.commands.mining: | ||||||
|  |         description: Allows access to the mining command | ||||||
|     mcmmo.commands.mmoedit: |     mcmmo.commands.mmoedit: | ||||||
|         description: Allows access to the mmoedit command |         description: Allows access to the mmoedit command | ||||||
|     mcmmo.commands.mmoedit.others: |     mcmmo.commands.mmoedit.others: | ||||||
| @@ -942,7 +969,9 @@ permissions: | |||||||
|         children: |         children: | ||||||
|             mcmmo.commands.ptp.world.all: true |             mcmmo.commands.ptp.world.all: true | ||||||
|     mcmmo.commands.ptp.world.all: |     mcmmo.commands.ptp.world.all: | ||||||
|         description: Implies access to all mcmmo.commands.ptp.world permissions. |         description: Implies access to all mcmmo.commands.ptp.world permissions | ||||||
|  |     mcmmo.commands.repair: | ||||||
|  |         description: Allows access to the repair command | ||||||
|     mcmmo.commands.skillreset.*: |     mcmmo.commands.skillreset.*: | ||||||
|         description: Implies access to all mcmmo.commands.skillreset permissions |         description: Implies access to all mcmmo.commands.skillreset permissions | ||||||
|         children: |         children: | ||||||
| @@ -1042,6 +1071,16 @@ permissions: | |||||||
|         description: Allows access to the skillreset command for unarmed |         description: Allows access to the skillreset command for unarmed | ||||||
|     mcmmo.commands.skillreset.woodcutting: |     mcmmo.commands.skillreset.woodcutting: | ||||||
|         description: Allows access to the skillreset command for woodcutting |         description: Allows access to the skillreset command for woodcutting | ||||||
|  |     mcmmo.commands.smelting: | ||||||
|  |         description: Allows access to the smelting command | ||||||
|  |     mcmmo.commands.swords: | ||||||
|  |         description: Allows access to the swords command | ||||||
|  |     mcmmo.commands.taming: | ||||||
|  |         description: Allows access to the taming command | ||||||
|  |     mcmmo.commands.unarmed: | ||||||
|  |         description: Allows access to the unarmed command | ||||||
|  |     mcmmo.commands.woodcutting: | ||||||
|  |         description: Allows access to the woodcutting command | ||||||
|     mcmmo.commands.xprate.*: |     mcmmo.commands.xprate.*: | ||||||
|         description: Implies access to all mcmmo.commands.inspect permissions |         description: Implies access to all mcmmo.commands.inspect permissions | ||||||
|         children: |         children: | ||||||
| @@ -1071,6 +1110,11 @@ permissions: | |||||||
|         description: Allows participation in admin chat |         description: Allows participation in admin chat | ||||||
|     mcmmo.chat.partychat: |     mcmmo.chat.partychat: | ||||||
|         description: Allows participation in party chat |         description: Allows participation in party chat | ||||||
|  |     mcmmo.skillreset: | ||||||
|  |         description: Allow reset of skill levels | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.skillreset.all: true | ||||||
|  |             mcmmo.commands.skillreset.others.all: false | ||||||
|     mcmmo.skills.*: |     mcmmo.skills.*: | ||||||
|         description: Implies all mcmmo.skills permissions. |         description: Implies all mcmmo.skills permissions. | ||||||
|         children: |         children: | ||||||
| @@ -1078,47 +1122,68 @@ permissions: | |||||||
|     mcmmo.skills.all: |     mcmmo.skills.all: | ||||||
|         description: Implies all mcmmo.skills permissions. |         description: Implies all mcmmo.skills permissions. | ||||||
|         children: |         children: | ||||||
|             mcmmo.skills.fishing: true |  | ||||||
|             mcmmo.skills.taming: true  |  | ||||||
|             mcmmo.skills.mining: true  |  | ||||||
|             mcmmo.skills.woodcutting: true  |  | ||||||
|             mcmmo.skills.repair: true  |  | ||||||
|             mcmmo.skills.unarmed: true  |  | ||||||
|             mcmmo.skills.archery: true  |  | ||||||
|             mcmmo.skills.herbalism: true  |  | ||||||
|             mcmmo.skills.excavation: true  |  | ||||||
|             mcmmo.skills.swords: true  |  | ||||||
|             mcmmo.skills.axes: true  |  | ||||||
|             mcmmo.skills.acrobatics: true |             mcmmo.skills.acrobatics: true | ||||||
|  |             mcmmo.skills.archery: true | ||||||
|  |             mcmmo.skills.axes: true | ||||||
|  |             mcmmo.skills.excavation: true | ||||||
|  |             mcmmo.skills.fishing: true | ||||||
|  |             mcmmo.skills.herbalism: true | ||||||
|  |             mcmmo.skills.mining: true | ||||||
|  |             mcmmo.skills.repair: true | ||||||
|  |             mcmmo.skills.swords: true | ||||||
|             mcmmo.skills.smelting: true |             mcmmo.skills.smelting: true | ||||||
|     mcmmo.skills.fishing: |             mcmmo.skills.taming: true | ||||||
|         description: Allows access to the Fishing skill |             mcmmo.skills.unarmed: true | ||||||
|     mcmmo.skills.taming: |             mcmmo.skills.woodcutting: true | ||||||
|         description: Allows access to the Taming skill |  | ||||||
|     mcmmo.skills.mining: |  | ||||||
|         description: Allows access to the Mining skill |  | ||||||
|     mcmmo.skills.woodcutting: |  | ||||||
|         description: Allows access to the Woodcutting skill |  | ||||||
|     mcmmo.skills.repair: |  | ||||||
|         description: Allows access to the Repair skill |  | ||||||
|     mcmmo.skills.unarmed: |  | ||||||
|         description: Allows access to the Unarmed skill |  | ||||||
|     mcmmo.skills.archery: |  | ||||||
|         description: Allows access to the Archery skill |  | ||||||
|     mcmmo.skills.herbalism: |  | ||||||
|         description: Allows access to the Herbalism skill |  | ||||||
|     mcmmo.skills.excavation: |  | ||||||
|         description: Allows access to the Excavation skill |  | ||||||
|     mcmmo.skills.swords: |  | ||||||
|         description: Allows access to the Swords skill |  | ||||||
|     mcmmo.skills.axes: |  | ||||||
|         description: Allows access to the Axes skill |  | ||||||
|     mcmmo.skills.acrobatics: |     mcmmo.skills.acrobatics: | ||||||
|         description: Allows access to the Acrobatics skill |         description: Allows access to the Acrobatics skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.acrobatics: true | ||||||
|  |     mcmmo.skills.archery: | ||||||
|  |         description: Allows access to the Archery skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.archery: true | ||||||
|  |     mcmmo.skills.axes: | ||||||
|  |         description: Allows access to the Axes skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.axes: true | ||||||
|  |     mcmmo.skills.excavation: | ||||||
|  |         description: Allows access to the Excavation skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.excavation: true | ||||||
|  |     mcmmo.skills.fishing: | ||||||
|  |         description: Allows access to the Fishing skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.fishing: true | ||||||
|  |     mcmmo.skills.herbalism: | ||||||
|  |         description: Allows access to the Herbalism skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.herbalism: true | ||||||
|  |     mcmmo.skills.mining: | ||||||
|  |         description: Allows access to the Mining skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.mining: true | ||||||
|  |     mcmmo.skills.repair: | ||||||
|  |         description: Allows access to the Repair skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.repair: true | ||||||
|     mcmmo.skills.smelting: |     mcmmo.skills.smelting: | ||||||
|         description: Allows access to the Smelting skill |         description: Allows access to the Smelting skill | ||||||
|     mcmmo.skillreset: |  | ||||||
|         description: Allow reset of skill levels |  | ||||||
|         children: |         children: | ||||||
|             mcmmo.commands.skillreset.all: true |             mcmmo.commands.smelting: true | ||||||
|             mcmmo.commands.skillreset.others.all: false |     mcmmo.skills.swords: | ||||||
|  |         description: Allows access to the Swords skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.swords: true | ||||||
|  |     mcmmo.skills.taming: | ||||||
|  |         description: Allows access to the Taming skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.taming: true | ||||||
|  |     mcmmo.skills.unarmed: | ||||||
|  |         description: Allows access to the Unarmed skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.unarmed: true | ||||||
|  |     mcmmo.skills.woodcutting: | ||||||
|  |         description: Allows access to the Woodcutting skill | ||||||
|  |         children: | ||||||
|  |             mcmmo.commands.woodcutting: true | ||||||
		Reference in New Issue
	
	Block a user
	 Glitchfinder
					Glitchfinder