Make plugins window style configurable between default and the old scrollable style

This commit is contained in:
Harmony 2019-05-14 20:14:15 +01:00
parent f3b1971e2b
commit 3b480db9f6
2 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#DATABASE UPDATE: 2.0.0 RC-2 -> 2.0.0 RC-3
INSERT INTO `emulator_settings` (`key`, `value`) VALUES ('commands.plugins.oldstyle', '0');
#END DATABASE UPDATE: 2.0.0 RC-2 -> 2.0.0 RC-3

View File

@ -2,9 +2,11 @@ package com.eu.habbo.habbohotel.commands;
import com.eu.habbo.Emulator;
import com.eu.habbo.habbohotel.gameclients.GameClient;
import com.eu.habbo.messages.outgoing.generic.alerts.GenericAlertComposer;
import com.eu.habbo.messages.outgoing.generic.alerts.MessagesForYouComposer;
import com.eu.habbo.plugin.HabboPlugin;
import java.util.Collections;
public class PluginsCommand extends Command
{
public PluginsCommand()
@ -22,7 +24,14 @@ public class PluginsCommand extends Command
message.append("\r").append(plugin.configuration.name).append(" By ").append(plugin.configuration.author);
}
gameClient.getHabbo().alert(message.toString());
if (Emulator.getConfig().getBoolean("commands.plugins.oldstyle"))
{
gameClient.sendResponse(new MessagesForYouComposer(Collections.singletonList(message.toString())));
} else
{
gameClient.getHabbo().alert(message.toString());
}
return true;
}