Cheap plugin developement
I am offering to make small plugins for little. I imagine this being great for small servers who don't have a lot to spend. I started coding about 4 years ago but I quit for a while. If you are looking for some plugins made, contact me on skype: skypenaam3211
We can discuss if, when and for how much if you add me. I am willing to adjust if you're budget is really low depending on the type of plugin.
Here is a really simple plugin I made for a Lobby server. It prevents players from building and breaking blocks if they are not OP and it teleports you to the spawn location of my server. It also has one command to show you the version of the plugin. This is all custom made without a config file so it is really easy to use. I can however use config files if needed.
I hope to talk to you on skype.
I am offering to make small plugins for little. I imagine this being great for small servers who don't have a lot to spend. I started coding about 4 years ago but I quit for a while. If you are looking for some plugins made, contact me on skype: skypenaam3211
We can discuss if, when and for how much if you add me. I am willing to adjust if you're budget is really low depending on the type of plugin.
Code:
package com.mobieljoy;
import java.util.logging.Logger;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;
import org.bukkit.event.player.PlayerDropItemEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerPickupItemEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class MainClass extends JavaPlugin implements Listener{
public static Logger logger = Logger.getLogger("Minecraft");
@Override
public void onEnable() {
logger.info("[MobieljoyHub] Plugin Enabled!");
Bukkit.getServer().getPluginManager().registerEvents(this, this);
}
@Override
public void onDisable() {
logger.info("[MobieljoyHub] Plugin Disabled!");
}
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = (Player) sender;
if(label.equalsIgnoreCase("jhub")){
player.sendMessage(ChatColor.WHITE + "[" + ChatColor.RED + "Mobieljoyhub" + ChatColor.WHITE + "] " + ChatColor.GRAY + "Mobieljoy hub plugin v1.0 is up and running!");
}
return super.onCommand(sender, cmd, label, args);
}
@EventHandler
public void onjoin(PlayerJoinEvent event){
Player player = event.getPlayer();
World world = player.getWorld();
Location spawn = new Location(world, 271.5, 89, 340.5, 180, 0);
player.teleport(spawn);
}
@EventHandler
public void onplace(BlockPlaceEvent event){
Player player = event.getPlayer();
if(player.isOp()){
return;
}
else{
event.setCancelled(true);
player.sendMessage(ChatColor.WHITE + "[" + ChatColor.BLUE + "Server" + ChatColor.WHITE + "] " + ChatColor.RED + "You don't have permission to do that!");
}
}
@EventHandler
public void onbreak(BlockBreakEvent event){
Player player = event.getPlayer();
if(player.isOp()){
return;
}
else{
event.setCancelled(true);
player.sendMessage(ChatColor.WHITE + "[" + ChatColor.BLUE + "Server" + ChatColor.WHITE + "] " + ChatColor.RED + "You don't have permission to do that!");
}
}
@EventHandler
public void ondrop(PlayerDropItemEvent event){
Player player = event.getPlayer();
if(player.isOp()){
return;
}
else{
event.setCancelled(true);
player.sendMessage(ChatColor.WHITE + "[" + ChatColor.BLUE + "Server" + ChatColor.WHITE + "] " + ChatColor.RED + "You don't have permission to do that!");
}
}
@EventHandler
public void onpickup(PlayerPickupItemEvent event){
Player player = event.getPlayer();
Item item = event.getItem();
if(player.isOp()){
return;
}
else{
event.setCancelled(true);
player.sendMessage(ChatColor.WHITE + "[" + ChatColor.BLUE + "Server" + ChatColor.WHITE + "] " + ChatColor.RED + "You don't have permission to do that!");
item.remove();
}
}
}
Here is a really simple plugin I made for a Lobby server. It prevents players from building and breaking blocks if they are not OP and it teleports you to the spawn location of my server. It also has one command to show you the version of the plugin. This is all custom made without a config file so it is really easy to use. I can however use config files if needed.
I hope to talk to you on skype.
