SBPrime / AsyncWorldEdit-Premium

Async WorldEdit - Edit millions of blocks without lag! (Premium version)
Other
19 stars 4 forks source link

How to get the Clipboard of an Player? #204

Closed FREE2WIN2 closed 4 years ago

FREE2WIN2 commented 4 years ago

I want to save all schematics in an extra directory for my Schematic-Organizer. With normal worldedit, my code works, but wih AWE I don't get the player's clipboard. WorldEditPlugin worldeditPlugin = (WorldEditPlugin) Bukkit.getServer().getPluginManager().getPlugin("WorldEdit"); Clipboard clipboard = worldeditPlugin.getSession(p).getClipboard().getClipboard();

SBPrime commented 4 years ago

What exactly do you mean? When do you execute this piece of code?

FREE2WIN2 commented 4 years ago

This code snippet was correct, I had a mistake in another line:)