mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-05 20:12:54 +00:00
Extract CommandSender to CommandSource, this should prevent Ess user object leaks.
This commit is contained in:
parent
cf9d79d24c
commit
6f85761f7f
145 changed files with 1848 additions and 590 deletions
|
@ -1,10 +1,10 @@
|
|||
package com.earth2me.essentials.commands;
|
||||
|
||||
import com.earth2me.essentials.CommandSource;
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import com.earth2me.essentials.User;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
|
||||
public class Commandweather extends EssentialsCommand
|
||||
|
@ -60,7 +60,7 @@ public class Commandweather extends EssentialsCommand
|
|||
|
||||
//TODO: Translate these
|
||||
@Override
|
||||
protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
||||
protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws Exception
|
||||
{
|
||||
if (args.length < 2) //running from console means inserting a world arg before other args
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue