From 94bc49b7d33a5722c0c2be4d460e25ad993f378d Mon Sep 17 00:00:00 2001 From: ulumulu1510 Date: Sun, 20 Mar 2016 19:11:17 +0100 Subject: [PATCH] 0.1h - Include nulls in TabList. --- .../massivecore/command/type/TypeNullable.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/massivecraft/massivecore/command/type/TypeNullable.java b/src/com/massivecraft/massivecore/command/type/TypeNullable.java index 48d8d5d0..8db4019e 100644 --- a/src/com/massivecraft/massivecore/command/type/TypeNullable.java +++ b/src/com/massivecraft/massivecore/command/type/TypeNullable.java @@ -71,4 +71,17 @@ public class TypeNullable extends TypeWrapper return super.read(arg, sender); } + @Override + public Collection getTabList(CommandSender sender, String arg) + { + // Super + Collection ret = super.getTabList(sender, arg); + + // Add nulls + ret.addAll(this.getNulls()); + + // Return + return ret; + } + }