-
-
Notifications
You must be signed in to change notification settings - Fork 0
Basic usage
itsTyrion edited this page Mar 1, 2024
·
1 revision
(This example does not show all properties)
import org.bukkit.plugin.java.JavaPlugin;
import de.itsTyrion.pluginAnnotation.bukkit.BukkitPlugin;
@Plugin(
name = "MyPlugin",
description = "Awesome Bukkit plugin",
authors = {"Your Name"},
depend = {"AnotherPluginYouDependOn"}
)
public class MyPlugin extends JavaPlugin {
// Your plugin code here
}
import net.md_5.bungee.api.plugin.Plugin;
import de.itsTyrion.pluginAnnotation.bungee.BungeePlugin;
@Plugin(
name = "MyPlugin",
description = "Awesome Bungee/Waterfall plugin",
author = "Your Name",
depends = {"AnotherPluginYouDependOn"}
)
public class MyBungeePlugin extends Plugin {
// Your plugin code here
}
import net.md_5.bungee.api.plugin.Plugin;
import de.itsTyrion.pluginAnnotation.velocity.VelocityPlugin;
import de.itsTyrion.pluginAnnotation.velocity.Dependency;
@Plugin(
name = "MyPlugin",
description = "Awesome Bungee/Waterfall plugin",
author = "Your Name",
dependencies = {@Dependency(id = "a-plugin"), @Dependency(id = "an-optional-plugin", optional = true)}
)
public class MyVelocityPlugin {
// Your plugin code here
}