mirror of
				https://github.com/GayPizzaSpecifications/foundation.git
				synced 2025-11-04 03:39:37 +00:00 
			
		
		
		
	kbity
This commit is contained in:
		@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					package gay.pizza.foundation.core.features.player
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import org.bukkit.command.Command
 | 
				
			||||||
 | 
					import org.bukkit.command.CommandExecutor
 | 
				
			||||||
 | 
					import org.bukkit.command.CommandSender
 | 
				
			||||||
 | 
					import org.bukkit.entity.Player
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class GooseCommand : CommandExecutor {
 | 
				
			||||||
 | 
					  override fun onCommand(
 | 
				
			||||||
 | 
					    sender: CommandSender,
 | 
				
			||||||
 | 
					    command: Command,
 | 
				
			||||||
 | 
					    label: String,
 | 
				
			||||||
 | 
					    args: Array<out String>): Boolean {
 | 
				
			||||||
 | 
					    if (sender !is Player) {
 | 
				
			||||||
 | 
					      sender.sendMessage("Player is required for this command.")
 | 
				
			||||||
 | 
					      return true
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    sender.chat("Goose is the most beautiful kbity to ever exist <3")
 | 
				
			||||||
 | 
					    sender.chat("I don't know who Nat is but there is no way she can compare to Goose.")
 | 
				
			||||||
 | 
					    return true
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -47,6 +47,7 @@ class PlayerFeature : Feature() {
 | 
				
			|||||||
    registerCommandExecutor(listOf("adventure", "a"), GamemodeCommand(GameMode.ADVENTURE))
 | 
					    registerCommandExecutor(listOf("adventure", "a"), GamemodeCommand(GameMode.ADVENTURE))
 | 
				
			||||||
    registerCommandExecutor(listOf("spectator", "sp"), GamemodeCommand(GameMode.SPECTATOR))
 | 
					    registerCommandExecutor(listOf("spectator", "sp"), GamemodeCommand(GameMode.SPECTATOR))
 | 
				
			||||||
    registerCommandExecutor(listOf("localweather", "lw"), LocalWeatherCommand())
 | 
					    registerCommandExecutor(listOf("localweather", "lw"), LocalWeatherCommand())
 | 
				
			||||||
 | 
					    registerCommandExecutor(listOf("goose", "the_most_wonderful_kitty_ever"), GooseCommand())
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  override fun module() = org.koin.dsl.module {
 | 
					  override fun module() = org.koin.dsl.module {
 | 
				
			||||||
 | 
				
			|||||||
@ -63,3 +63,8 @@ commands:
 | 
				
			|||||||
    usage: /localweather <type>
 | 
					    usage: /localweather <type>
 | 
				
			||||||
    aliases:
 | 
					    aliases:
 | 
				
			||||||
      - lw
 | 
					      - lw
 | 
				
			||||||
 | 
					  goose:
 | 
				
			||||||
 | 
					    description: Goose
 | 
				
			||||||
 | 
					    usage: /goose
 | 
				
			||||||
 | 
					    aliases:
 | 
				
			||||||
 | 
					      - the_most_wonderful_kitty_ever
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user