Last active
December 19, 2015 11:59
-
-
Save azenla/5951335 to your computer and use it in GitHub Desktop.
Minetweak Example Plugin class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.test; | |
import org.minetweak.command.CommandExecutor; | |
import org.minetweak.command.CommandSender; | |
public class CommandTest extends CommandExecutor { | |
@Override | |
public void executeCommand(CommandSender sender, String overallCommand, String[] args) { | |
if (sender.hasPermission("minetweak.command.test")) { | |
sender.sendMessage("Cool! Even though its not needed, you have permissions to use this!"); | |
} | |
sender.sendMessage("Hello, " + sender.getName()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import org.minetweak.plugins.MinetweakPlugin; | |
import org.minetweak.Minetweak; | |
public class PluginClass extends MinetweakPlugin { | |
@Override | |
public void onEnable() { | |
Minetweak.info("Example Plugin Enabled"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment