Fixed TntFill (Again) -_-

This commit is contained in:
Driftay 2020-01-04 18:49:55 -05:00
parent 0a1346f1c2
commit 57833bee13
3 changed files with 32 additions and 6 deletions

View File

@ -111,7 +111,7 @@ public class CmdTntFill extends FCommand {
} }
// Take TNT from the bank. // Take TNT from the bank.
context.faction.takeTnt(getFactionTnt); removeFromBank(context, getFactionTnt);
} }
fillDispensers(context.fPlayer, opDispensers, amount); fillDispensers(context.fPlayer, opDispensers, amount);
// Remove used TNT from player inventory. // Remove used TNT from player inventory.

View File

@ -19,11 +19,6 @@ public class TimeFrame {
private boolean starting; // pending starting countdown private boolean starting; // pending starting countdown
private boolean ending; // pending ending countdown private boolean ending; // pending ending countdown
private enum times {
twelveAM, oneAM, twoAM, threeAM, fourAM, fiveAM, sixAM, sevenAM, eightAM, nineAM, tenAM, elevenAM, twelvePM,
onePM, twoPM, threePM, fourPM, fivePM, sixPM, sevenPM, eightPM, ninePM, tenPM, elevenPM;
}
public TimeFrame(Faction faction, Enum startingTime, Enum endingTime, boolean starting, boolean ending, boolean inEffect, int currentMinutes){ public TimeFrame(Faction faction, Enum startingTime, Enum endingTime, boolean starting, boolean ending, boolean inEffect, int currentMinutes){
this.faction = faction; this.faction = faction;

View File

@ -0,0 +1,31 @@
package com.massivecraft.factions.shield;
/**
* @author Saser
*/
public enum Times {
TWELVEAM,
ONEAM,
TWOAM,
THREEAM,
FOURAM,
FIVEAM,
SIXAM,
SEVENAM,
EIGHTAM,
NINEAM,
TENAM,
ELEVENAM,
TWELVEPM,
ONEPM,
TWOPM,
THREEPM,
FOURPM,
FIVEPM,
SIXPM,
SEVENPM,
EIGHTPM,
NINEPM,
TENPM,
ELEVENPM
}