mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2025-01-20 20:51:20 +01:00
Initial commit
Signed-off-by: Grafe <flingelfrank@hotmail.com>
This commit is contained in:
commit
80c21409c9
20
.gitignore
vendored
Normal file
20
.gitignore
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
# Eclipse stuff
|
||||
/.classpath
|
||||
/.project
|
||||
/.settings
|
||||
|
||||
# NetBeans
|
||||
/nbproject
|
||||
/build.xml
|
||||
|
||||
# vim
|
||||
.*.sw[a-p]
|
||||
|
||||
# various other potential build files
|
||||
/build
|
||||
/bin
|
||||
/dist
|
||||
/*.jardesc
|
||||
|
||||
# Mac filesystem dust
|
||||
.DS_Store
|
9
plugin.yml
Normal file
9
plugin.yml
Normal file
@ -0,0 +1,9 @@
|
||||
name: Brewery
|
||||
version: 0.1
|
||||
main: com.dre.brewery.P
|
||||
authors: [Frank Baumann]
|
||||
softdepend: [Vault]
|
||||
commands:
|
||||
brewery:
|
||||
description: Reference command for Brewery.
|
||||
aliases: [brew,br]
|
5
src/com/dre/brewery/Barrel.java
Normal file
5
src/com/dre/brewery/Barrel.java
Normal file
@ -0,0 +1,5 @@
|
||||
package com.dre.brewery;
|
||||
|
||||
public class Barrel {
|
||||
|
||||
}
|
29
src/com/dre/brewery/P.java
Normal file
29
src/com/dre/brewery/P.java
Normal file
@ -0,0 +1,29 @@
|
||||
package com.dre.brewery;
|
||||
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import com.dre.brewery.listeners.BlockListener;
|
||||
|
||||
public class P extends JavaPlugin{
|
||||
public static P p;
|
||||
|
||||
//Listeners
|
||||
public BlockListener blockListener;
|
||||
|
||||
|
||||
@Override
|
||||
public void onEnable(){
|
||||
p = this;
|
||||
|
||||
//Listeners
|
||||
blockListener = new BlockListener();
|
||||
|
||||
p.getServer().getPluginManager().registerEvents(blockListener, p);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable(){
|
||||
|
||||
}
|
||||
}
|
17
src/com/dre/brewery/listeners/BlockListener.java
Normal file
17
src/com/dre/brewery/listeners/BlockListener.java
Normal file
@ -0,0 +1,17 @@
|
||||
package com.dre.brewery.listeners;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.block.SignChangeEvent;
|
||||
|
||||
public class BlockListener implements Listener{
|
||||
|
||||
@EventHandler
|
||||
public void onSignChange(SignChangeEvent event){
|
||||
String[] lines = event.getLines();
|
||||
|
||||
if(lines[0].equalsIgnoreCase("[Barrel]")){
|
||||
event.getPlayer().sendMessage("Barrel created!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user