onEnable
method.CommandTest
for an example.
Every command class must extend CommandBase./commandtest
simply to send a message saying Hello!
.test
that'll send a message saying Test!
.
Player player
instead of CommandSender sender
it'll automatically make a player only command!onEnable
method and add the following.