English:
This plugin allows you to build structures within a few seconds. This could be useful for example in game mode, so also for fun. The plugin is 100% adjustable in the Config.yml. There you can change the items in the GUI as well as the blocks that are placed.
Germany:
Dieses Plugin ermöglicht es ihnen innerhalb von wenigen Sekunden Strukturen zu errichten. Das könnte z. B. in Spielmodus nützlich sein, also auch zum Spaß. Das Plugin ist zu 100 % einstellbar in der Config.yml. Dort kann man die Items in der GUI als auch die Blöcke die platziert werden ändern.
GUI:
/Buildings #To open the Bridges Menu
/ReloadBuildings #To reload changes after editing
!!! All Player can use Bridges if they have them
You need "buildings.GUI" to use /Buildings
You need the Permission "buildings.normal" to get the normal_building or you are OP
You need the Permission "buildings.stairs" to get the stairs bridge or you are OP
You need the Permission "buildings.tunnel" to get the tunnel bridge or you are OP
You need the Permission "buildings.bunker" to get the bunker bridge or you are OP
You need the Permission "buildings.wall" to get the safe_wall bridge or you are OP
Config.yml
Code (YAML):
# !!! # Please Note that the Block id is only needed when you set the Placed Block to WOOL or STAINED_CLAY !!!! # Otherwise it will get Ignored !!!! # !!! prefix: '&5Instant Buildings &b>> ' // This is The Prefix
GUI_Name: '&cInstant Buildings Menu' // This is the GUI Name when you type
"/buildings" no_perms: '&4You have
no rights to do this!' // That is the messane you get when you tpe
"/buildings" and you are not OP.
normal: // This is the Bridge !! You Can't chnage it !!
name: '&5Default Bridge' // Name of the Bridge
block: STEP // Block of the Bridge in the GUI
block_id: 4 // Block id in the GUI
place: WOOL // Placed Block from the Bridge
place_id: 3 // Placed Block id
length: 15 // length of the bridge
importde.Schulschluss.instantbuildings.API;// this is NEEDED to import the API
publicclass Main
extends JavaPlugin
implements CommandExecutor
{
// This method is called, when the server starts publicvoid onEnable
(){ this.
getCommand("build-bridge-bunker").
setExecutor(this);// register this command below }
// This method is called, when somebody uses the command @Override
publicboolean onCommand
(CommandSender sender, Command command,
String label,
String[] args
){
if(sender
instanceof Player
){// check if the sender is a Player and not the console Player player
=(Player
) sender
;// set the player API.
build_bunker(player
);// create the bunker bridge on the Player Location
} returnfalse; } }
Perfect Example Code if you want to add it to a Game with Teams
importde.Schulschluss.instantbuildings.API;// this is NEEDED to import the API
publicclass Main
extends JavaPlugin
implements Listener
{
// This method is called, when the server starts publicvoid onEnable
(){
PluginManager pm
= getServer
().
getPluginManager(); pm.
registerEvents(new Main
(),
this);// register the "PlayerInteractEvent" event. }
// This event get trigger when a player is Interacting with something. @EventHandler
publicvoid clickStick
(PlayerInteractEvent e
){ if(e.
getAction()==Action.
RIGHT_CLICK_AIR|| e.
getAction()==Action.
LEFT_CLICK_AIR|| e.
getAction()==Action.
RIGHT_CLICK_BLOCK|| e.
getAction()==Action.
LEFT_CLICK_BLOCK){ Player p
= e.
getPlayer();
// Create the wall for the Team in the gven color. ItemStack wall
=new ItemStack
(Material.
STAINED_GLASS_PANE,
1, DyeColor.
LIGHT_BLUE.
getData());
// Creates a Example Item that the Player has to click ItemStack MagicStick
=new ItemStack
(Material.
STICK,
1); ItemMeta MagicStickmeta
= MagicStick.
getItemMeta(); MagicStickmeta.
setDisplayName("§3MagicStick"); MagicStick.
setItemMeta(MagicStickmeta
);
// Check if the player has the itemstack with the same name as MagicStick in the hand. if(p.
getItemInHand().
getItemMeta().
equals(MagicStick.
getItemMeta())){ API.
build_safe_wall(p, wall
);// Creates the safe_wall Building withe the Example wall item for the team in the Color. API.
build_safe_wall(p, wall,
10,
12);// Creates the safe_wall Building withe the Example wall item for the team in the Color and the width of 10 and the hight of 12. } } } }
You are not allowed to decompile this plugin.
You are not allowed to sell, give or redistribute this product.
You are not allowed to use, view or modify any of the plugin's codes.
You are not allowed to claim this plugin as your own.