mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
All changes up to 0.6.4
This commit is contained in:
parent
38f24bee62
commit
244f356331
@ -32,7 +32,7 @@ public class mcBlockListener extends BlockListener {
|
||||
String xyz = x+","+y+","+z;
|
||||
mcConfig.getInstance().addBlockWatch(block);
|
||||
mcConfig.getInstance().addCoordsWatch(xyz);
|
||||
if(block.getTypeId() == 42)
|
||||
if(block.getTypeId() == 42 && mcLoadProperties.anvilmessages)
|
||||
event.getPlayer().sendMessage(ChatColor.DARK_RED+"You have placed an anvil, anvils can repair tools and armor.");
|
||||
}
|
||||
//put all Block related code here
|
||||
@ -102,12 +102,12 @@ public class mcBlockListener extends BlockListener {
|
||||
for (int cx = -radius; cx <= radius; cx++) {
|
||||
for (int cy = -radius; cy <= radius; cy++) {
|
||||
for (int cz = -radius; cz <= radius; cz++) {
|
||||
Block dirt = world.getBlockAt(ox + cx, oy + cy, oz + cz);
|
||||
//If block is dirt
|
||||
Block block = world.getBlockAt(ox + cx, oy + cy, oz + cz);
|
||||
//If block is block
|
||||
if (isWater == true &&
|
||||
dirt.getTypeId() == 13) {
|
||||
block.getTypeId() == 13 && mcLoadProperties.clay) {
|
||||
//Change
|
||||
dirt.setTypeId(82);
|
||||
block.setTypeId(82);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.gmail.nossr50;
|
||||
|
||||
public class mcLoadProperties {
|
||||
public static Boolean pvp, eggs, apples, cake, music, diamond, glowstone, slowsand, sulphur, netherrack, bones, coal;
|
||||
public static Boolean pvp, eggs, apples, cake, music, diamond, glowstone, slowsand, sulphur, netherrack, bones, coal, clay, anvilmessages;
|
||||
public static String mcmmo, mcc, stats, mmoedit, ptp, party, myspawn, setmyspawn, whois, invite, accept;
|
||||
|
||||
public static void loadMain(){
|
||||
@ -9,7 +9,14 @@ public class mcLoadProperties {
|
||||
mcProperties properties = new mcProperties(propertiesFile);
|
||||
properties.load();
|
||||
|
||||
|
||||
/*
|
||||
* TOGGLE CLAY
|
||||
*/
|
||||
clay = properties.getBoolean("clay", true);
|
||||
/*
|
||||
* ANVIL MESSAGES
|
||||
*/
|
||||
anvilmessages = properties.getBoolean("anvilmessages", true);
|
||||
/*
|
||||
* EXCAVATION LOOT TOGGLES
|
||||
*/
|
||||
|
@ -67,6 +67,8 @@ public class mcMMO extends JavaPlugin {
|
||||
writer.append("mcmmo=mcmmo");
|
||||
writer.append("mcc=mcc");
|
||||
writer.append("stats=stats");
|
||||
writer.append("clay=true");
|
||||
writer.append("anvilmessages=true");
|
||||
writer.append("#Appreciate the plugin? Send me a donation via paypal nossr50@gmail.com\r\n");
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, "Exception while creating " + Properties, e);
|
||||
|
@ -1,3 +1,3 @@
|
||||
name: mcMMO
|
||||
main: com.gmail.nossr50.mcMMO
|
||||
version: 0.6.2
|
||||
version: 0.6.4
|
Loading…
Reference in New Issue
Block a user