#Inventory being able to move items

1 messages · Page 1 of 1 (latest)

pliant sphinx
iron schooner
#

e

twilit goblet
#

bet

stoic girder
#

some code is ignored

#

yep but its ok i don't want more items in my gui

#

yes

#

Eclipse

quiet plume
#


@Override
    public boolean onCommand(CommandSender sender, Command command, String command_input, String[] args) {

my exemple

#

his code


@EventHandler
    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

twilit goblet
#

why is there an event handler there

stoic girder
#

yes

#

its the same class

#

oh ok

twilit goblet
#

wouldnt he change @EventHandler to @Override?


public class CMDgive implements CommandExecutor {
    
    
    @EventHandler```

```java
public class CMDgive implements CommandExecutor {
@Override~```
quiet plume
#
  1. error with plugin.yml
twilit goblet
#
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (sender instanceof Player) {
            Player player = (Player) sender;
            player.sendMessage("§6§lCraftyStudios §7§l» §f§lRunning on version 1.0");
            return false;
        }
        return false;```
my code, but it is returning /craftycore when I run it...
stoic girder
twilit goblet
#

@stoic girder fix paste

stoic girder
#

Not Found

#

.. fail sry

#

@twilit goblet

twilit goblet
#

what

#

make a new paste

stoic girder
#

its good

#

@twilit goblet its good

twilit goblet
#

ye

#

ikd

#

let me look

#

^

stoic girder
#

public class CMDgive2 implements Listener{

#

ok and?

twilit goblet
#

bot isnt in thread

#

@pallid blade

#

there you go

#

?event

#

hm

#

oh thread probally isnt specified in their code lol

#

lmao

#

ye

stoic girder
#

i love you all it work

#

thx

stoic girder
#

sry but

#

if(cur == Material.DIRT) return;
if(cur == Material.GOLD_BLOCK) return;

#

some alternative ?