Copied Norbi's gitignore
This commit is contained in:
parent
3d1694b75c
commit
5b4e0a28e7
7 changed files with 291 additions and 32 deletions
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry kind="src" path="src"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
|
||||||
<classpathentry kind="lib" path="C:/Users/Alisolarflare/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/craftbukkit-1.9.2.jar"/>
|
|
||||||
<classpathentry kind="lib" path="C:/Users/Alisolarflare/Personal/Hobbies/The Button Rebirth/Button Plugin/Minecraft Test Server/spigot-1.9.2.jar"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
|
||||||
</classpath>
|
|
231
.gitignore
vendored
231
.gitignore
vendored
|
@ -1,13 +1,224 @@
|
||||||
*.class
|
#################
|
||||||
|
## Eclipse
|
||||||
|
#################
|
||||||
|
|
||||||
# Mobile Tools for Java (J2ME)
|
*.pydevproject
|
||||||
.mtj.tmp/
|
.project
|
||||||
|
.metadata/
|
||||||
|
bin/
|
||||||
|
tmp/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
*~.nib
|
||||||
|
local.properties
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
|
.loadpath
|
||||||
|
target/
|
||||||
|
.project
|
||||||
|
|
||||||
# Package Files #
|
# External tool builders
|
||||||
*.war
|
.externalToolBuilders/
|
||||||
*.ear
|
|
||||||
|
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
# Locally stored "Eclipse launch configurations"
|
||||||
hs_err_pid*
|
*.launch
|
||||||
/bin/
|
|
||||||
/target/
|
# 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
|
||||||
|
|
|
@ -15,3 +15,7 @@ commands:
|
||||||
description: Activates the Flair Me Command. Ask Ali, she was fucking tired when writing this description
|
description: Activates the Flair Me Command. Ask Ali, she was fucking tired when writing this description
|
||||||
gpowercommand:
|
gpowercommand:
|
||||||
description: Testing command for ghostie powers
|
description: Testing command for ghostie powers
|
||||||
|
powerup:
|
||||||
|
description: Official g-power command that activates the ghostie powerups
|
||||||
|
powerdown:
|
||||||
|
description: Offical g-power command that deactivates the ghostie powerups
|
|
@ -8,6 +8,8 @@ import alisolarflare.flairdoors.FlairMe;
|
||||||
import alisolarflare.flairdoors.PortalListener;
|
import alisolarflare.flairdoors.PortalListener;
|
||||||
import alisolarflare.flairdoors.SetFlairDoorColour;
|
import alisolarflare.flairdoors.SetFlairDoorColour;
|
||||||
import alisolarflare.gpowers.gPowerCommand;
|
import alisolarflare.gpowers.gPowerCommand;
|
||||||
|
import alisolarflare.gpowers.commands.PowerDown;
|
||||||
|
import alisolarflare.gpowers.commands.PowerUp;
|
||||||
import alisolarflare.gpowers.listeners.gPowerListener;
|
import alisolarflare.gpowers.listeners.gPowerListener;
|
||||||
|
|
||||||
//import alisolarflare.links.AliLinkSubPlug;
|
//import alisolarflare.links.AliLinkSubPlug;
|
||||||
|
@ -39,6 +41,8 @@ public class AliPresents extends JavaPlugin{
|
||||||
//alilinksubplugin.register();
|
//alilinksubplugin.register();
|
||||||
}
|
}
|
||||||
public void registerCommands(){
|
public void registerCommands(){
|
||||||
|
getCommand("powerup").setExecutor(new PowerUp());
|
||||||
|
getCommand("powerdown").setExecutor(new PowerDown());
|
||||||
getCommand("gpowercommand").setExecutor(new gPowerCommand());
|
getCommand("gpowercommand").setExecutor(new gPowerCommand());
|
||||||
getCommand("flairme").setExecutor(new FlairMe());
|
getCommand("flairme").setExecutor(new FlairMe());
|
||||||
getCommand("alishulker").setExecutor(new AliShulker());
|
getCommand("alishulker").setExecutor(new AliShulker());
|
||||||
|
|
15
src/alisolarflare/gpowers/commands/PowerDown.java
Normal file
15
src/alisolarflare/gpowers/commands/PowerDown.java
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
package alisolarflare.gpowers.commands;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
public class PowerDown implements CommandExecutor {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
20
src/alisolarflare/gpowers/commands/PowerUp.java
Normal file
20
src/alisolarflare/gpowers/commands/PowerUp.java
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
package alisolarflare.gpowers.commands;
|
||||||
|
|
||||||
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandExecutor;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
import alisolarflare.gpowers.gPowerMemory;
|
||||||
|
|
||||||
|
public class PowerUp implements CommandExecutor{
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
|
if (!(sender instanceof Player)){
|
||||||
|
sender.sendMessage("You must be a player to use this command!");
|
||||||
|
}
|
||||||
|
gPowerMemory.PowerUpPlayer(player, colour);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -25,12 +25,21 @@ public class gPowerMemory{
|
||||||
player.sendMessage("POWERRED UP!");
|
player.sendMessage("POWERRED UP!");
|
||||||
PlayerMap.put(player.getUniqueId(), new poweredPlayer(player.getUniqueId(), colour, true));
|
PlayerMap.put(player.getUniqueId(), new poweredPlayer(player.getUniqueId(), colour, true));
|
||||||
}
|
}
|
||||||
|
public static void PowerUpPlayer(Player player){
|
||||||
|
//debug("POWERRRED UP");
|
||||||
|
player.sendMessage("POWERRED UP!");
|
||||||
|
if(PlayerMap.containsKey(player.getUniqueId())){
|
||||||
|
PlayerMap.get(player.getUniqueId()).isPowersActive = true;
|
||||||
|
}else{
|
||||||
|
player.sendMessage("You must instantiate your power settings using /gpowercommand");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//POWER DEACTIVATION
|
//POWER DEACTIVATION
|
||||||
public static void PowerDownPlayer(Player player){
|
public static void PowerDownPlayer(Player player){
|
||||||
//debug("POWERRRED DOWN");
|
//debug("POWERRRED DOWN");
|
||||||
if (PlayerMap.containsKey(player.getUniqueId())){
|
if (PlayerMap.containsKey(player.getUniqueId())){
|
||||||
PlayerMap.get(player.getUniqueId()).playerPowersActivated = false;
|
PlayerMap.get(player.getUniqueId()).isPowersActive = false;
|
||||||
}else{
|
}else{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -39,7 +48,7 @@ public class gPowerMemory{
|
||||||
public static void PowerDownPlayer(UUID UniqueID){
|
public static void PowerDownPlayer(UUID UniqueID){
|
||||||
//debug("POWEERRED DOWN");
|
//debug("POWEERRED DOWN");
|
||||||
if (PlayerMap.containsKey(UniqueID)){
|
if (PlayerMap.containsKey(UniqueID)){
|
||||||
PlayerMap.get(UniqueID).playerPowersActivated = false;
|
PlayerMap.get(UniqueID).isPowersActive = false;
|
||||||
}else{
|
}else{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -47,7 +56,7 @@ public class gPowerMemory{
|
||||||
public static boolean isPlayerPowered(UUID UniqueID){
|
public static boolean isPlayerPowered(UUID UniqueID){
|
||||||
//debug("IS PLAYER POWERED?");
|
//debug("IS PLAYER POWERED?");
|
||||||
if (PlayerMap.containsKey(UniqueID)){
|
if (PlayerMap.containsKey(UniqueID)){
|
||||||
return PlayerMap.get(UniqueID).playerPowersActivated;
|
return PlayerMap.get(UniqueID).isPowersActive;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -55,33 +64,37 @@ public class gPowerMemory{
|
||||||
public static boolean isPlayerPowered(Player player){
|
public static boolean isPlayerPowered(Player player){
|
||||||
//debug("IS PLAYER POWERED?");
|
//debug("IS PLAYER POWERED?");
|
||||||
if (PlayerMap.containsKey(player.getUniqueId())){
|
if (PlayerMap.containsKey(player.getUniqueId())){
|
||||||
return PlayerMap.get(player.getUniqueId()).playerPowersActivated;
|
return PlayerMap.get(player.getUniqueId()).isPowersActive;
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//MEMORY UNIT
|
//MEMORY UNIT
|
||||||
public static class poweredPlayer{
|
public static class poweredPlayer{
|
||||||
public UUID uuid;
|
public static UUID uuid;
|
||||||
public String colour;
|
public String colour;
|
||||||
public Boolean playerPowersActivated;
|
public Boolean isPowersActive;
|
||||||
|
|
||||||
public poweredPlayer(UUID uuid, String colour, Boolean activated){
|
public poweredPlayer(UUID uuid, String colour, Boolean activated){
|
||||||
this.uuid = (uuid);
|
this.uuid = (uuid);
|
||||||
this.colour = (colour);
|
this.colour = (colour);
|
||||||
this.playerPowersActivated = (activated);
|
this.isPowersActive = (activated);
|
||||||
}
|
}
|
||||||
public String toString(){
|
public String toString(){
|
||||||
return "[UUID: "+ uuid.toString() + ", Colour: "+ colour+", IsActivated: "+playerPowersActivated + "]";
|
return "[UUID: "+ uuid.toString() + ", Colour: "+ colour+", IsActivated: "+isPowersActive + "]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*DEBUG
|
public void saveMemoryState(){
|
||||||
@SuppressWarnings({ "deprecation" })
|
Map<UUID, poweredPlayer> PlayerMap = new HashMap<UUID, poweredPlayer>();
|
||||||
public static void debug(String debugString){
|
for (UUID uuidKey:PlayerMap.keySet()){
|
||||||
if (plugin.getServer().getPlayer("alisolarflare").isOnline() && debugMode == true){
|
|
||||||
plugin.getServer().getPlayer("alisolarflare").sendMessage("[gPowerTest]:"+debugString);
|
UUID uuidToSave = poweredPlayer.uuid;
|
||||||
|
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
public void loadMemoryState(){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue