mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 11:38:26 +01:00
Fix jrbuddas reported bugs
This commit is contained in:
parent
6b2b11b90d
commit
93d1c35305
@ -160,6 +160,7 @@ public class NPCCommands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Messaging.sendF(sender, ChatColor.GREEN + "%s has been copied.", StringHelper.wrap(npc.getName()));
|
Messaging.sendF(sender, ChatColor.GREEN + "%s has been copied.", StringHelper.wrap(npc.getName()));
|
||||||
|
selector.select(sender, npc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
|
@ -87,6 +87,7 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(DataKey key) throws NPCLoadException {
|
public void load(DataKey key) throws NPCLoadException {
|
||||||
|
text.clear();
|
||||||
// TODO: backwards compat, remove later
|
// TODO: backwards compat, remove later
|
||||||
for (DataKey sub : key.getIntegerSubKeys())
|
for (DataKey sub : key.getIntegerSubKeys())
|
||||||
text.add(sub.getString(""));
|
text.add(sub.getString(""));
|
||||||
@ -101,11 +102,6 @@ public class Text extends Trait implements Runnable, Toggleable, Listener, Conve
|
|||||||
range = key.getDouble("range", range);
|
range = key.getDouble("range", range);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onAttach() {
|
|
||||||
if (text.isEmpty())
|
|
||||||
populateDefaultText();
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onRightClick(NPCRightClickEvent event) {
|
public void onRightClick(NPCRightClickEvent event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user