1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Forgot to remove drink from files

This commit is contained in:
montlikadani 2019-08-15 16:30:59 +02:00
parent 3ee52815a1
commit e7b5d6ceee
4 changed files with 7 additions and 20 deletions

View File

@ -10,11 +10,13 @@ import com.gamingmesh.jobs.stuff.Util;
public class jobsSign {
private String worldName;
private Integer x;
private Integer y;
private Integer z;
private World world;
private Location loc;
private Integer number;
private String jobName;
private Boolean special;
@ -110,21 +112,21 @@ public class jobsSign {
if (split.length > 0)
try {
x = Integer.parseInt(split[1]);
} catch (Exception e) {
} catch (NumberFormatException e) {
return;
}
if (split.length > 1)
try {
y = Integer.parseInt(split[2]);
} catch (Exception e) {
} catch (NumberFormatException e) {
return;
}
if (split.length > 2)
try {
z = Integer.parseInt(split[3]);
} catch (Exception e) {
} catch (NumberFormatException e) {
return;
}

View File

@ -390,8 +390,6 @@ public class LanguageManager {
c.get("command.info.output.fish.none", "%jobname% does not get money from fishing.");
c.get("command.info.output.craft.info", "&eCraft");
c.get("command.info.output.craft.none", "%jobname% does not get money from crafting.");
c.get("command.info.output.drink.info", "&eDrink");
c.get("command.info.output.drink.none", "%jobname% does not get money for drinking.");
c.get("command.info.output.smelt.info", "&eSmelt");
c.get("command.info.output.smelt.none", "%jobname% does not get money from smelting.");
c.get("command.info.output.brew.info", "&eBrew");

View File

@ -881,14 +881,12 @@ public class JobsListener implements Listener {
if (!(event.getBlock().getState() instanceof Dispenser))
continue;
Dispenser dispenser = null;
Dispenser dispenser = (Dispenser) event.getBlock().getState();
BlockFace directionFacing = null;
if (Version.isCurrentEqualOrLower(Version.v1_13_R2)) {
dispenser = (Dispenser) event.getBlock().getState();
org.bukkit.material.Dispenser dis = (org.bukkit.material.Dispenser) dispenser.getData();
directionFacing = dis.getFacing();
} else {
dispenser = (Dispenser) event.getBlock().getState();
org.bukkit.block.data.type.Dispenser dis = (org.bukkit.block.data.type.Dispenser) dispenser.getBlockData();
directionFacing = dis.getFacing();
}

View File

@ -104,7 +104,7 @@ Jobs:
# Quest identification. Can be any ONE word or number or both of them. This doesn't have any real meaning but it can't repeat.
1:
# Quest name used for quests list, don't forget to enclose it with " "
Name: "Break Oak wood"
Name: "Break Oak wood"
# List of objectives this quest will require for it to count as finished
# you can have as many objectives as you want
Objectives:
@ -243,17 +243,6 @@ Jobs:
income: 1.0
points: 1.0
experience: 1.0
# payment for drinking a potion
Drink:
water:
income: 0.5
experience: 2.0
regeneration_2:
income: 1.3
experience: 2.0
healing_1:
income: 1.4
experience: 2.0
# payment for breaking a block with tnt
TNTBreak:
log: