-
Total de itens
206 -
Registro em
-
Última visita
Respostas na Comunidade
-
Manolo8's postagem in Objeto em Metodo was marked as the answer
public class Test implements Listener {
private Location loc;
public Test() {
guardar();
}
public void guardar(){
World world = Bukkit.getServer().getWorld(getConfig().getString("Spawn.World"));
Double x = getConfig().getDouble("Spawn.X");
Double y = getConfig().getDouble("Spawn.Y");
Double z = getConfig().getDouble("Spawn.Z");
loc = new Location(world, x, y, z);
loc.setPitch((float) getConfig().getDouble("Spawn.Pitch"));
loc.setYaw((float) getConfig().getDouble("Spawn.Yaw"));
}
@EventHandler
public void onJoinSpawn(PlayerJoinEvent e){
Player p = e.getPlayer();
p.teleport(loc);
}
}
-
Manolo8's postagem in O Que tem de errado? PlayerPointsAPI was marked as the answer
int balance = playerpoints.getAPI().look("Player");
if(playerpoints.getAPI().take("Player", 1000)) {
você ta colocando um nome "Player", tem que colocar o nome do jogador, ou UUID, ou a classe Player, não sei...
look(p.getName());
-
Manolo8's postagem in Plugin que detecta minerios no inventario e vende automaticamente was marked as the answer
Demonstração
https://www.youtube.com/watch?v=OiCgTLYfzLI
Download
http://gamersboard.com.br/topic/55015-simpleautosell-tudo-simples/
CONFIG
FORMAT: "&aVoce recebeu mais {amount} &bTOTAL {total}" blocks: diamond_ore: 200 gold_ore: 100 iron_ore: 50 lapis_ore: 5 redstone_ore: 20 quartz_ore: 30 "carrot:7": 50 "potato:7": 60 "crops:7": 80 "sugar_cane_block": 50 "cactus": 30 #Não modifique, apenas caso você saiba #O que está fazendo! drops: diamond_ore: diamond redstone_ore: redstone lapis_ore: "ink_sack:4" quartz_ore: quartz "carrot:7": carrot "potato:7": potato "crops:7": wheat "sugar_cane_block": sugar_cane Se tiver dúvida, só falar ai
-
Manolo8's postagem in Plugin para drop de blocos irem direto para o inv was marked as the answer
Tem esse plugin que eu fiz a muito tempo:
http://gamersboard.com.br/topic/11381-directinventory/#entry109595(3 anos)
Não sei se ta funcionando, mas qualquer coisa avise que eu arrumo '-'
-
Manolo8's postagem in [Resolvido] [Duvida] Ao passar em um bloco é teleportado! was marked as the answer
public Location location = new Location(Bukkit.getWorld("nomedomundo"),20,20,20);
@EventHandler
public void onPlayerMove(PlayerMoveEvent e)
{
Block up = e.getBlock().getRelative(0,1,0);
//ou Block up = e.getBlock().getRelative(BlockFace.UP,1);
if(up.getType == Material.STONE)
{
e.getPlayer().teleport(location)
}
}
-
Manolo8's postagem in [Entregue] [Pedido] Plugin de /equipe was marked as the answer
veio, usa o /list, abre o essentials e coloca os aliases para /equipe... para /staff também...
é só configurar o essentials daí:
Nome: grupo
Fundador: fundador
ADM: adm
MOD: mod
Ai vai aparecer corretamente...
-
Manolo8's postagem in [Resolvido] [PROBLEMA] ECLIPSE was marked as the answer
por que não usa uma outra IDE? Intellij?