Mọi người cho mình hỏi plugin để không thể đào diamond từ diamond ores vậy ạ?
Java
package com.pwncraftpvp.ReducedDias;
import java.util.Random;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class ReducedMain extends JavaPlugin implements Listener{
public void onEnable(){
getLogger().info("version v" + this.getDescription().getVersion() + " is enabled!");
getServer().getPluginManager().registerEvents(this, this);
}
public void onDisable(){
getLogger().info("version v" + this.getDescription().getVersion() + " is disabled!");
}
@EventHandler
public void onBreak(BlockBreakEvent event){
if(event.getBlock().getTypeId() == 56){
Random random = new Random();
double r = random.nextDouble();
if(r <= 0.95){
event.getBlock().setTypeId(0);
}else {
event.getBlock().breakNaturally();
}
}
}
}
thế cái code này phải bỏ vào đâu ? và xài cái ứng dụng java nào để bỏ vào ? :vHiện tại thì mình kiếm không thấy plugin nào, n mà :v có cái code này có thể remove được diamond khi đào
Mã:Java package com.pwncraftpvp.ReducedDias; import java.util.Random; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.plugin.java.JavaPlugin; public class ReducedMain extends JavaPlugin implements Listener{ public void onEnable(){ getLogger().info("version v" + this.getDescription().getVersion() + " is enabled!"); getServer().getPluginManager().registerEvents(this, this); } public void onDisable(){ getLogger().info("version v" + this.getDescription().getVersion() + " is disabled!"); } @EventHandler public void onBreak(BlockBreakEvent event){ if(event.getBlock().getTypeId() == 56){ Random random = new Random(); double r = random.nextDouble(); if(r <= 0.95){ event.getBlock().setTypeId(0); }else { event.getBlock().breakNaturally(); } } } }
App nào chả dc 3 :V tạo Project xong tạo class bỏ vào r pack thành file jarthế cái code này phải bỏ vào đâu ? và xài cái ứng dụng java nào để bỏ vào ? :v
hm trình độ của ông thì đối với tôi cách xa một quãng đường dài nên tôi cũng trả hiểu ông nói gì cả :|App nào chả dc 3 :v tạo Project xong tạo class bỏ vào r pack thành file jar

ý là tạo 1 plugin ấy, có code sẵn rồi, h chỉ cần tạo = code đấy thôihm trình độ của ông thì đối với tôi cách xa một quãng đường dài nên tôi cũng trả hiểu ông nói gì cả :|![]()
có các cách sau:Mọi người cho mình hỏi plugin để không thể đào diamond từ diamond ores vậy ạ?
hm sao bạn trả lời như ko trả lời vậy nhỉcó các cách sau:
1. Không cho Rank đó đào luôn diamond
2. Cho Đào Nhưng Lại Ra Ores Khác Kiếu sắt đào có thể thành than í

thì có 2 loại plugins đó hỏi có phải k nếu k thì thui =)))hm sao bạn trả lời như ko trả lời vậy nhỉ![]()
CHắc Mem nó đào kim cương cương ra than chắc nó chỉ có thể ngồi khóc còn thằng Staff thì cười ra nc mắt. khắm vlcó các cách sau:
1. Không cho Rank đó đào luôn diamond
2. Cho Đào Nhưng Lại Ra Ores Khác Kiếu sắt đào có thể thành than í
Để thử =))Hiện tại thì mình kiếm không thấy plugin nào, n mà :v có cái code này có thể remove được diamond khi đào
Mã:Java package com.pwncraftpvp.ReducedDias; import java.util.Random; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockBreakEvent; import org.bukkit.plugin.java.JavaPlugin; public class ReducedMain extends JavaPlugin implements Listener{ public void onEnable(){ getLogger().info("version v" + this.getDescription().getVersion() + " is enabled!"); getServer().getPluginManager().registerEvents(this, this); } public void onDisable(){ getLogger().info("version v" + this.getDescription().getVersion() + " is disabled!"); } @EventHandler public void onBreak(BlockBreakEvent event){ if(event.getBlock().getTypeId() == 56){ Random random = new Random(); double r = random.nextDouble(); if(r <= 0.95){ event.getBlock().setTypeId(0); }else { event.getBlock().breakNaturally(); } } } }
câu trả lời của bạn dành cho người làm skyblock còn đây lỡ survival thì saothì có 2 loại plugins đó hỏi có phải k nếu k thì thui =)))


|
|
Plugin Share free PremiumPlugins
|
|
|
Chia sẻ [ Học Code Plugins ] Giáo trình FPT JAVA [ Free Download ]
|
|
|
Plugin Plugins Đặt Block Nhanh
|
|
|
Plugin Top 3 Plugins hay cho server survival
|
|
|
Plugin UnlimitedPlugins - Bug plugin không giới hạn (1.5) (Always update)
|