mirror of
				https://github.com/5vl/Staff.git
				synced 2025-10-31 02:03:39 +00:00 
			
		
		
		
	Added staffmode command.
This commit is contained in:
		| @@ -1,10 +1,12 @@ | |||||||
| package me.fivevl.staff | package me.fivevl.staff | ||||||
|  |  | ||||||
|  | import me.fivevl.staff.commands.StaffModeCommand | ||||||
| import org.bukkit.plugin.java.JavaPlugin | import org.bukkit.plugin.java.JavaPlugin | ||||||
|  |  | ||||||
| class Main : JavaPlugin() { | class Main : JavaPlugin() { | ||||||
|     override fun onEnable() { |     override fun onEnable() { | ||||||
|         logger.info("Staff plugin enabled.") |         logger.info("Staff plugin enabled.") | ||||||
|  |         getCommand("staffmode")!!.setExecutor(StaffModeCommand()) | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     override fun onDisable() { |     override fun onDisable() { | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								src/main/java/me/fivevl/staff/commands/StaffModeCommand.kt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/main/java/me/fivevl/staff/commands/StaffModeCommand.kt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | package me.fivevl.staff.commands | ||||||
|  |  | ||||||
|  | import org.bukkit.command.Command | ||||||
|  | import org.bukkit.command.CommandExecutor | ||||||
|  | import org.bukkit.command.CommandSender | ||||||
|  |  | ||||||
|  | class StaffModeCommand : CommandExecutor { | ||||||
|  |     override fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<out String>): Boolean { | ||||||
|  |         return true | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -4,3 +4,6 @@ main: me.fivevl.staff.Main | |||||||
| api-version: 1.18 | api-version: 1.18 | ||||||
| authors: [ 5vl ] | authors: [ 5vl ] | ||||||
| description: A staffing plugin. | description: A staffing plugin. | ||||||
|  | commands: | ||||||
|  |   staffmode: | ||||||
|  |     description: The command to go into staffmode. | ||||||
		Reference in New Issue
	
	Block a user
	 5vl
					5vl