Skip to content

Commit

Permalink
Fix a few minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jul 2, 2023
1 parent 1fb6d35 commit 75acf79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package com.sk89q.wepif;

import org.bukkit.BanEntry;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.OfflinePlayer;
Expand All @@ -32,6 +33,7 @@
import org.bukkit.plugin.Plugin;
import org.bukkit.profile.PlayerProfile;

import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
Expand Down Expand Up @@ -155,6 +157,11 @@ public boolean isBanned() {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public BanEntry<PlayerProfile> ban(String reason, Date expires, String source) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
public boolean isWhitelisted() {
throw new UnsupportedOperationException("Not supported yet.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,10 @@ private BaseBlock parseLogic(String input, ParserContext context) throws InputPa
if (nbtString != null) {
LinCompoundTag otherTag;
try {
System.out.println(nbtString);
otherTag = LinStringIO.readFromStringUsing(nbtString, LinCompoundTag::readFrom);
} catch (NbtParseException e) {
throw new NoMatchException(TranslatableComponent.of(
"worldedit.error.invalid-nbt",
"worldedit.error.parser.invalid-nbt",
TextComponent.of(input),
TextComponent.of(e.getMessage())
));
Expand Down

0 comments on commit 75acf79

Please sign in to comment.