Add 'ButtonPluginLaboratory/' from commit 'b398fe0e33bda6a48ff183cd9a2895df2e952b79'

git-subtree-dir: ButtonPluginLaboratory
git-subtree-mainline: d750852436
git-subtree-split: b398fe0e33
This commit is contained in:
alisolarflare 2017-02-16 17:45:22 -05:00
commit f3211ef858
40 changed files with 537 additions and 0 deletions

224
ButtonPluginLaboratory/.gitignore vendored Normal file
View file

@ -0,0 +1,224 @@
#################
## Eclipse
#################
*.pydevproject
.project
.metadata/
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
target/
.project
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
x64/
build/
[Bb]in/
[Oo]bj/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.Publish.xml
*.pubxml
*.publishproj
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
App_Data/*.mdf
App_Data/*.ldf
#############
## Windows detritus
#############
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Mac crap
.DS_Store
#############
## Python
#############
*.py[cod]
# Packages
*.egg
*.egg-info
dist/
build/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
.metadata/*
TheButtonAutoFlair/out/artifacts/Autoflair/Autoflair.jar
*.iml
*.name
.idea/compiler.xml
*.xml

Binary file not shown.

View file

@ -0,0 +1,2 @@
# ButtonMultiDevPlugin
A plugin for the button minecraft server, that multiple developers can add or adjust. Made for small projects like arrow trails or tests that are too small for their own plugin, but too big to add to an existing one.

View file

View file

@ -0,0 +1,3 @@
main: buttondevteam.MainPlugin
version: 1.0.0
name: ButtonLaboratoryPlugin

View file

@ -0,0 +1,44 @@
package buttondevteam;
import java.util.logging.Logger;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;
import buttondevteam.alisolarflare.discordbot.DiscordSubPlugin;
import buttondevteam.alisolarflare.iiewar.IieWarSubPlugin;
public class MainPlugin extends JavaPlugin{
private PluginDescriptionFile pdfFile;
private Logger logger;
private DiscordSubPlugin discordSubPlugin;
private IieWarSubPlugin iieWarSubPlugin;
public void onEnable(){
//Logs "Plugin Enabled", registers commands
pdfFile = getDescription();
logger = getLogger();
logger.info(pdfFile.getName() + " has been started (V." + pdfFile.getVersion()+ ").");
registerSubPlugins();
registerCommands();
registerEvents();
logger.info(pdfFile.getName() + " has been Enabled (V." + pdfFile.getVersion()+ ").");
}
public void onDisable(){
logger.info(pdfFile.getName() + " has been Disabled (V." + pdfFile.getVersion()+ ").");
}
public void registerSubPlugins(){
discordSubPlugin = new DiscordSubPlugin(this);
iieWarSubPlugin = new IieWarSubPlugin(this);
discordSubPlugin.register();
iieWarSubPlugin.register();
}
public void registerCommands(){
//Example command: getCommand("createShrine").setExecutor(new CreateShrine(this));
}
public void registerEvents(){
//EVENTS
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.DiscordPlugin;
public class DiscordPlugin {
}

View file

@ -0,0 +1,16 @@
package buttondevteam.alisolarflare.DiscordPlugin.helpers;
public class DiscordBotLink {
public void setRoleAsMinecraft(){
}
public void unsetRoleAsMinecraft(){
}
public void setRoleAsFlair(){
}
public void unsetRoleAsFlair(){
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.DiscordPlugin.listeners;
public class PrivateMessageListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem;
public class IieWarSystem {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem.commands;
public class ToggleWar {
}

View file

@ -0,0 +1,16 @@
package buttondevteam.alisolarflare.IieWarSystem.helpers;
import org.bukkit.entity.Player;
public class WarListManager {
public void createWarList(){
//stub
}
public void LoadWarList(){
//stub
}
public boolean isOnList(Player player){
return false;
//stub
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem.listeners;
public class CreativeListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem.listeners;
public class ObsidianListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem.listeners;
public class SpawnEggListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.IieWarSystem.listeners;
public class TeleportListener {
}

View file

@ -0,0 +1,39 @@
package buttondevteam.alisolarflare.aliarrowtrail;
import org.bukkit.entity.Arrow;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Projectile;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.ProjectileLaunchEvent;
import buttondevteam.MainPlugin;
public class AliArrowListener implements Listener {
private final MainPlugin plugin;
public AliArrowListener(MainPlugin plugin){
this.plugin = plugin;
}
@SuppressWarnings("deprecation")
@EventHandler
public void onProjectileLaunch(ProjectileLaunchEvent event){
try{
if(!(event.getEntity().getType() == EntityType.ARROW)){
return;
}
Projectile projectile = event.getEntity();
if (!(projectile.getShooter().equals(plugin.getServer().getPlayer("Ali")))){
return;
}
Arrow arrow = (Arrow) projectile;
if (!(arrow.isCritical())){
return;
}
AliArrowTask aliArrowTask = new AliArrowTask(plugin,arrow);
aliArrowTask.runTaskTimer(plugin, 2, 1);
}catch(Exception e){
return;
}
}
}

View file

@ -0,0 +1,30 @@
package buttondevteam.alisolarflare.aliarrowtrail;
import org.bukkit.Particle;
import org.bukkit.entity.Arrow;
import org.bukkit.scheduler.BukkitRunnable;
import buttondevteam.MainPlugin;
public class AliArrowTask extends BukkitRunnable{
MainPlugin plugin;
Arrow arrow;
public AliArrowTask(MainPlugin plugin, Arrow arrow){
this.plugin = plugin;
this.arrow = arrow;
}
@Override
public void run() {
arrow.getWorld().spawnParticle(Particle.VILLAGER_HAPPY, arrow.getLocation(), 1);
if (arrow.isOnGround() || arrow.isDead()){
this.cancel();
}
}
}

View file

@ -0,0 +1,26 @@
package buttondevteam.alisolarflare.discordbot;
import java.util.logging.Level;
import buttondevteam.MainPlugin;
public class DiscordSubPlugin {
private MainPlugin plugin;
public DiscordSubPlugin(MainPlugin plugin){
this.plugin = plugin;
}
public void register(){
registerEvents();
registerCommands();
plugin.getLogger().log(Level.INFO, "Discord Sub Plugin Registered!");
}
private void registerEvents() {
}
private void registerCommands() {
// TODO Auto-generated method stub
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.discordbot.commands;
public class Discord {
}

View file

@ -0,0 +1,16 @@
package buttondevteam.alisolarflare.discordbot.helpers;
public class DiscordBotLink {
public void setRoleAsMinecraft(){
}
public void unsetRoleAsMinecraft(){
}
public void setRoleAsFlair(){
}
public void unsetRoleAsFlair(){
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.discordbot.listeners;
public class PrivateMessageListener {
}

View file

@ -0,0 +1,25 @@
package buttondevteam.alisolarflare.iiewar;
import java.util.logging.Level;
import buttondevteam.MainPlugin;
public class IieWarSubPlugin {
private MainPlugin plugin;
public IieWarSubPlugin(MainPlugin plugin){
this.plugin = plugin;
}
public void register(){
registerEvents();
registerCommands();
plugin.getLogger().log(Level.INFO, "Discord Sub Plugin Registered!");
}
private void registerEvents() {
}
private void registerCommands() {
// TODO Auto-generated method stub
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.iiewar.commands;
public class ToggleWar {
}

View file

@ -0,0 +1,16 @@
package buttondevteam.alisolarflare.iiewar.helpers;
import org.bukkit.entity.Player;
public class WarListManager {
public void createWarList(){
//stub
}
public void LoadWarList(){
//stub
}
public boolean isOnList(Player player){
return false;
//stub
}
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.iiewar.listeners;
public class CreativeListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.iiewar.listeners;
public class ObsidianListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.iiewar.listeners;
public class SpawnEggListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.iiewar.listeners;
public class TeleportListener {
}

View file

@ -0,0 +1,5 @@
package buttondevteam.alisolarflare.project2.tasks;
public class ExampleClass {
}